2017-08-24 86 views
-1

我试图在CentOS 7错误建筑Tensorflow 7

My environment: gcc (g++) 7.20, bazel 0.5.3, python3 (with all necessary dependencies listed on tensorflow web site), swig 3.0.12, openjdk 8. Everything is installed in the users scope, without root access.

编译Tensorflow(R1.3)每当我试图建立一个Python包调用以下命令

bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

我收到此错误:

.....

2017-08-24 11:40:35.734659: W tensorflow/core/framework/op_gen_lib.cc:372] Squeeze can't find input squeeze_dims to rename ERROR: /home/data/software/tensorflow/tensorflow/python/BUILD:2762:1: Couldn't build file tensorflow/python/pywrap_tensorflow_internal.cc: SWIGing tensorflow/python/tensorflow.i failed (Exit 1).

...

但是构建C + +1 ib(bazel build --config = opt //tensorflow:libtensorflow_cc.so)在没有任何问题的情况下工作

我做错了什么?

更新25.08.2017: 好吧,似乎SWIG是在运行bazel构建时从源代码自动构建的。发货SWIG版本的版本是3.0.8。但是,我仍然不知道如何解决这个问题。

回答

0

好的,问题通过使用bazel版本0.5.1解决。较新的版本产生相同的错误。