【问题标题】:TensorFlow: Extension file not found: 'google/protobuf/protobuf.bzl'TensorFlow:找不到扩展文件:“google/protobuf/protobuf.bzl”
【发布时间】:2016-03-24 12:18:03
【问题描述】:

我正在关注this tutorial 安装支持 GPU 且兼容 CUDA Compute Capability 3.0 的 TensorFlow。

我安装了 Java-JDK8、Bazel 0.1.0、TensorFlow 0.6.0,并更改了配置以在 CUDA Compute Capability 3.0 上运行。到目前为止一切都很好。

但是当我输入这个命令时:

$HOME/bin/bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer

我看到了这个输出:

Extracting Bazel installation...
.....
ERROR: /home/me/tensorflow/tensorflow/core/BUILD:1: Extension file not found: 'google/protobuf/protobuf.bzl'.
ERROR: /home/me/tensorflow/tensorflow/cc/BUILD:65:1: error loading package 'tensorflow/core': Extension file not found: 'google/protobuf/protobuf.bzl' and referenced by '//tensorflow/cc:tutorials_example_trainer'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 1.006s

有什么建议吗?

【问题讨论】:

标签: tensorflow bazel


【解决方案1】:

通过运行以下命令解决了问题:

$ git clone -b 0.6.0 –recurse-submodules https://github.com/tensorflow/tensorflow.git

我收到的错误消息记录在 here。拉出所有子模块解决了这个问题。

【讨论】:

    【解决方案2】:

    上面的命令有问题,-recurse-submodules 不存在

    试试这个:

    $ git clone --recursive git@github.com:tensorflow/tensorflow.git

    【讨论】:

    • 嗨,“-recurse-submodules”应该是“--recurse-submodules”。注意开头的两个“-” :-)
    猜你喜欢
    • 2022-04-04
    • 1970-01-01
    • 2021-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-10
    相关资源
    最近更新 更多