ERROR: An error occurred during the fetch of repository 'local_execution_config_python':
Traceback (most recent call last):
File "C:/users/k/_bazel_k/stl2uqx6/external/org_tensorflow/third_party/py/python_configure.bzl", line 212, column 22, in _create_local_python_repository
_check_python_bin(repository_ctx, python_bin)
File "C:/users/k/_bazel_k/stl2uqx6/external/org_tensorflow/third_party/py/python_configure.bzl", line 145, column 25, in _check_python_bin
auto_config_fail("--define %s='%s' is not executable. Is it the python binary?" % (
File "C:/users/k/_bazel_k/stl2uqx6/external/org_tensorflow/third_party/remote_config/common.bzl", line 12, column 9, in auto_config_fail
fail("%sConfiguration Error:%s %s\n" % (red, no_color, msg))
Error in fail: Configuration Error: --define PYTHON_BIN_PATH='C://Users//k//AppData//Local//Programs//Python//Python310//python.exe' is not executable. Is it the python binary?
当出现形如这个未识别python.exe的时候,排查了一个星期都没找到,最后发现要明确在系统环境变量中指定BAZEL_SH为:自己装的msys64\usr\bin\bash.exe的路径,有大佬说这是win11可能出现的问题,其实不是很对,因为我个人用的机器是win10照样会出现这样的问题