未定义的符号" _Z14tf_git_versionv"在张量流中

时间:2016-10-31 02:10:06

标签: tensorflow swig undefined-symbol

我使用bazel 0.3.1构建了tensroflow R0.10,然后生成了python whl文件,没有错误。 但是,我收到了这个错误。 有没有什么办法解决这一问题?

>>> import tensorflow
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/__init__.py", line 23, in <module>
    from tensorflow.python import *
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 24, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/tensorflow/python/_pywrap_tensorflow.so: undefined symbol: _Z14tf_git_versionv

1 个答案:

答案 0 :(得分:0)

我们认为早期版本存在问题。请尝试升级。当前版本为0.11rc2。 https://github.com/tensorflow/tensorflow/issues/5295