【问题标题】:Build Tensorflow Error "Cannot find bazel. Please install bazel"构建 TensorFlow 错误“找不到 bazel。请安装 bazel”
【发布时间】:2020-07-16 11:16:57
【问题描述】:

我想构建 tensorflow,我从 “git克隆https://github.com/tensorflow/tensorflow.git" 我使用 tensorflow-gpu 版本为 1.14.0 构建模型,我使用 conda 使用命令安装 bazel “conda install -c conda-forge bazel=0.24.1” 但是,当我在 tensorflow 中运行“python ./configure.py”时,出现此错误 找不到巴泽尔。请安装 bazel 所以,我尝试“bazel test”,我工作正常

尝试从https://docs.bazel.build/versions/master/install-windows.html 安装 bazel 还是不行,求大神帮忙

python 3.6

【问题讨论】:

    标签: python tensorflow deep-learning object-detection bazel


    【解决方案1】:

    你是否在 ~/.bashrc 中插入了 bazel 的路径?也许你应该添加它以便 tensorflow 可以找到它:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多