我正在自己完成 Tensorflow 安装会话(每个会话都是一次独特的体验),并且我试图了解 Bazel 构建工具出了什么问题。
为此,我在下载了指南中提到的所有内容后按照此处的示例进行操作。我还适当添加了环境变量:
尝试构建一个示例后,我得到:
The target you are compiling requires Visual C++ build tools.
Bazel couldn't find a valid Visual C++ build tools installation on your machine.
Visual C++ build tools seems to be installed at C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC
But Bazel can't find the following tools:
VCVARSALL.BAT, cl.exe, link.exe, lib.exe, ml64.exe
Run Code Online (Sandbox Code Playgroud)
这是没有意义的。我检查了这个目录中可以找到cl.exe、link.exe和ml64.exe。我的另一个怀疑是我可能需要管理员权限,所以我也使用管理员权限运行构建,但这没有什么区别。
我怀疑 VCVARSALL.bat 可能丢失,但我不知道需要安装什么才能获取该文件。