【问题标题】:Tensorflow building error张量流构建错误
【发布时间】:2018-08-02 16:02:06
【问题描述】:

我在构建 Tensorflow 1.1.0 时遇到了这个错误

Starting local Bazel server and connecting to it...
ERROR: /home/bishal/.cache/bazel/_bazel_bishal/798d6395d959361055d9b5ddcd7dcd45/external/io_bazel_rules_closure/closure/testing/phantomjs_test.bzl:31:10: name 'set' is not defined
ERROR: /home/bishal/.cache/bazel/_bazel_bishal/798d6395d959361055d9b5ddcd7dcd45/external/io_bazel_rules_closure/closure/private/defs.bzl:27:16: name 'set' is not defined
ERROR: /home/bishal/.cache/bazel/_bazel_bishal/798d6395d959361055d9b5ddcd7dcd45/external/io_bazel_rules_closure/closure/compiler/closure_js_binary.bzl:216:13: name 'set' is not defined
ERROR: /home/bishal/.cache/bazel/_bazel_bishal/798d6395d959361055d9b5ddcd7dcd45/external/io_bazel_rules_closure/closure/filegroup_external.bzl:23:16: name 'set' is not defined
ERROR: error loading package '': Extension 'closure/filegroup_external.bzl' has errors
Building: no action

我为此使用了bazel 0.16.0。如果这个问题是因为 bazel 版本不正确,我必须使用哪个版本来解决这个问题?

【问题讨论】:

标签: tensorflow bazel


【解决方案1】:

您需要使用 Bazel 0.5.4 来构建 Tensorflow 1.1.0。请注意,0.5.4 已经很旧了——在撰写此答案时是 0.16.0。

是否需要专门构建 Tensorflow 1.1.0?

【讨论】:

  • 是的。我必须构建 Tensorflow 1.1.0。谢谢您的建议。我将尝试使用 Bazel 0.5.4 进行构建。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-06-21
  • 2018-09-26
  • 2023-03-03
  • 2017-08-04
  • 1970-01-01
  • 2018-06-09
相关资源
最近更新 更多