繁体   English   中英

bazel build错误:找不到python.exe

[英]bazel build Error: Cannot locate python.exe

我正在尝试在mysys64中使用以下方法构建bazel。 我在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

但是,当我尝试编译时, mysys2给出了错误。 它说它找不到我的python.exe 这太奇怪了,因为文件在我提供的路径中。 有人在这里发生什么吗? 我还尝试了错误信息,但没有任何效果。 我该如何解决?

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"

您尚未设置Python PATH。 该命令将起作用

export PATH="/your/python/exe/directory"

或者(例如您的终端在说)

export PATH="/c/Python27:$PATH"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM