簡體   English   中英

構建 Tensorflow 錯誤“找不到 bazel。 請安裝 bazel”

[英]Build Tensorflow Error “Cannot find bazel. Please install bazel”

I want to build tensorflow, I download the file from "git clone https://github.com/tensorflow/tensorflow.git" I build model using tensorflow-gpu version is 1.14.0 and I use conda to install bazel using command " conda install -c conda-forge bazel=0.24.1" 但是,當我在 tensorflow 中運行“python./configure.py”時,出現此錯誤找不到 bazel。 請安裝 bazel 所以,我嘗試“bazel test”,我工作正常

嘗試從https://docs.bazel.build/versions/master/install-windows.html安裝 bazel 仍然無法正常工作,有人可以幫忙嗎

python 3.6

您是否在 ~/.bashrc 中插入了 bazel 的路徑? 也許您應該添加它以便 tensorflow 可以找到它:

echo "PATH=<path>/<to>/<bazel>/output:\$PATH" >> ~/.bashrc

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM