python - Bazel构建 tensorflow : The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite rule

标签 python linux ubuntu tensorflow

我正在按照此处概述的步骤进行操作: http://www.nvidia.com/object/gpu-accelerated-applications-tensorflow-installation.html

我有 GTX 860M 和 Ubuntu 16.04。

我严格按照说明进行操作,除了步骤 5。其中我指向了实际的 python 二进制位置 (/usr/bin/python2.7)。

这是我收到的错误:

daniel@beepboop:~/tensorflow$ bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
WARNING: /home/daniel/tensorflow/tensorflow/tensorflow.bzl:477:26: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
WARNING: /home/daniel/tensorflow/tensorflow/tensorflow.bzl:490:24: Variables HOST_CFG and DATA_CFG are deprecated in favor of strings "host" and "data" correspondingly.
ERROR: The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite rule.

我在这里缺少什么?

最佳答案

在第 5 步中不执行 git reset 会导致一切正常工作。

关于python - Bazel构建 tensorflow : The specified --crosstool_top '//third_party/gpus/crosstool:crosstool' is not a valid cc_toolchain_suite rule,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40347756/

相关文章:

ubuntu - 将文件从 Kaggle 下载到 Google Colab

linux - swap用完是什么意思?

python - 使用漂亮的汤基于类和 href 标签解析 html 标签

python - Django Template does not exist 错误,尽管它显示 'file exists'

python xml.etree.ElementTree 获取元素内的所有内容,无论是文本还是子元素

linux - 无法 dlopen 加载模块 '/usr/lib/pa20_64/libpthread.1',因为它包含线程特定数据

c++ - 将 C++ 代码从 MS Visual Studio 移植到 Linux 并处理类型化枚举

c++ - 错误 : `boost' has not been declared

linux - 使用 Dockerfile 重新加载 .bashrc

python - 如何在Python中找到真阳性、真阴性、假阳性、假阴性