2017-08-24 52 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解決。較新的版本產生相同的錯誤。