-
Notifications
You must be signed in to change notification settings - Fork 74.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration Error: --define PYTHON_BIN_PATH='C:/Users/user/AppData/Local/Programs/Python/Python39/python.exe' is not executable. Is it the python binary? #56420
Comments
I met this issue on cmd, but did not meet it on git bash. |
Hi @guweixin ! Thanks for reporting this bug . @gadagashwini ! Could you please look at this issue . It is replicating in 2.8, 2.9 and master branch with both Python 3.8 and 3.9 (Tested in local machines) . Found a similar issue here . Thank you! |
HI @guweixin, Please do the following steps to fix it manually. Step 1. Open the
Step 2. Rerun the build command. Then, you can go further and see another error "invalid escape sequence". ERROR Step 3. Open the BUILD file, in my example the file path is C:/external/local_execution_config_python/BUILD, and replace every \ with \ at line 11 and 17. Step 4. Continue the build process. Refer similar issue here. Thank you! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
@gadagashwini Sorry, I follow step1 and step2, but it doesn't work, I meet the same error again. |
@guweixin pardon,have you solved this question? I have met the same error today, Any help would be appreciated! |
@sssstudyy still not solved. |
I have this issue on Windows as well. |
I met this issue too. (win10 professional 22H2) As switching git bash from cmd to build, it can be compiled successfully. (But what I need and the syntax I runned is not the same as yours=> bazel build --config=opt tensorflow:tensorflow.dll) Thanks for sharing anyway, it helps! (Btw. I also tried to build it by the default Bash of MobaXterm and the error did not occur neither. ) |
Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
tf2.9.1
Custom Code
No
OS Platform and Distribution
win10
Mobile device
No response
Python version
3.9
Bazel version
5.1.1
GCC/Compiler version
No response
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Standalone code to reproduce the issue
Relevant log output
No response
The text was updated successfully, but these errors were encountered: