tensorflow 构建错误

标签 tensorflow bazel

我在构建 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 版本不合适,我必须使用哪个版本来解决这个问题?

最佳答案

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

您需要专门构建 Tensorflow 1.1.0 吗?

关于 tensorflow 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51657913/

相关文章:

python - 使用扩张因果卷积和 Tensorflow 2.0 进行时间序列预测

python - 如何使用 tensorflow 在 C++ 中训练模型?

python - 我们可以手动更改训练模型的内核值吗?

bazel - 如何获取bazel中每个测试的执行时间?

python - 错误 : tensorboard 2. 0.2 要求 setuptools>=41.0.0,但您将拥有不兼容的 setuptools 40.6.2

tensorflow - 如何将保存的模型转换或加载到 TensorFlow 或 Keras 中?

bazel - 我可以依赖匹配模式的所有 Bazel 目标,而不单独列出它们吗?

python - 工具链未下载工具

bazel 构建带有后缀的通配符

c++ - 在 bazel 中替代 "` --whole-archive`"