我想從源代碼安裝最新的TensorFlow。我把資料庫,然後跑去無法使用bazel從源代碼構建TensorFlow。 2016年1月22日
bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
我得到這個錯誤:
ERROR: /home/samuelchin/tensorflow/tensorflow/models/embedding/BUILD:10:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path.
ERROR: /home/samuelchin/tensorflow/tensorflow/models/embedding/BUILD:10:6: file '/tensorflow:tensorflow.bzl.bzl' was not correctly loaded. Make sure the 'load' statement appears in the global scope in your file.
ERROR: /home/samuelchin/tensorflow/tensorflow/models/embedding/BUILD:104:1: name 'tf_gen_op_wrapper_py' is not defined.
ERROR: /home/samuelchin/tensorflow/tensorflow/tools/pip_package/BUILD:13:1: Target '//tensorflow/models/embedding:package' contains an error and its package is in error and referenced by '//tensorflow/tools/pip_package:build_pip_package'.
ERROR: Loading failed; build aborted.
INFO: Elapsed time: 0.071s.
我不會特別推薦最新版本。 IIRC有一段時間,Bazel 0.1.1可以工作,0.1.2不能工作,0.1.2是最新版本。這是特定版本的工作,而不是最新版本。我知道巴澤爾集團一直在關注讓巴澤爾爲TensorFlow的公開版繼續工作,但我不知道細節。 –