[英]bazel build Error: Cannot locate python.exe
I'm trying to build bazel using the following approach in mysys64. 我正在尝试在mysys64中使用以下方法构建bazel。 I found this at tensorflow-mnist-test
我在tensorflow-mnist-test上发现了这个
cd [bazel-dist-dir]
pacman -Syuu gcc git curl zip unzip zlib-devel
export BAZEL_WRKDIR=c:/tempdir/shrtpath
export BAZEL_SH=c:/tools/msys64/usr/bin/bash.exe
export BAZEL_VS=c:/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 14.0
export BAZEL_PYTHON=c:/Python36/python.exe
./compile.sh
./compile.sh compile output/bazel.exe
However mysys2
gives an error when I try to compile. 但是,当我尝试编译时,
mysys2
给出了错误。 It says it cannot locate my python.exe
. 它说它找不到我的
python.exe
。 This is so strange because the file is in the path I provide. 这太奇怪了,因为文件在我提供的路径中。 Does anybody what is going on here?
有人在这里发生什么吗? I also tried the message giving in the error but nothing work.
我还尝试了错误信息,但没有任何效果。 How can I solve this?
我该如何解决?
Master Tk@DESKTOP-BJH5T82 MSYS /C/Users/Master
TK/Downloads/tensorflow_compilation/bazel-0.11.1
$ ./compile.sh
ERROR: cannot locate python.exe; check your PATH.
You may need to run the following command, or something
similar, depending on where you installed Python:
export PATH="/c/Python27:$PATH"
You have not set the Python PATH yet. 您尚未设置Python PATH。 This command would work
该命令将起作用
export PATH="/your/python/exe/directory"
Or (like your terminal is saying) 或者(例如您的终端在说)
export PATH="/c/Python27:$PATH"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.