make Bazel use python 3
问题 I would like to run my py_test with python 3 in Bazel. py_library( name = "foo", srcs = ["foo.py"] ) py_test( name = "foo_test", srcs = glob(["foo_test.py",]), deps = [":foo"] ) py_runtime( name = "python-3.6.3", files = [], interpreter_path = "/usr/local/bin/python3", ) I was able to achieve this using command bazel test --python_top=//path/to/foo:python-3.6.3 foo_test However, I would like to import python3 to bazel sandbox with new_http_archive and provide the interpreter_path for the py