bazel build Error: Cannot locate 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 路径。 这个命令可以工作

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

或者(如您的终端所说)

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