小编xia*_*ong的帖子

未定义的符号:在ubuntu14.04上具有tensorflow的clock_gettime

我已经从bazel安装了来自源的tensorflow.但是当我在python中导入tensorflow时,会发生错误.

>>> import tensorflow as tf

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zjuese/anaconda2/lib/python2.7/site-packages/tensorflow/__init__.py", line 8, in <module>
    from tensorflow.python import *
  File "/home/zjuese/anaconda2/lib/python2.7/site-packages/tensorflow/python/__init__.py", line 34, in <module>
    from tensorflow.python.client.client_lib import *
  File "/home/zjuese/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/client_lib.py", line 39, in <module> 
    from tensorflow.python.client.session import InteractiveSession
  File "/home/zjuese/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 16, in <module>
    from tensorflow.python import pywrap_tensorflow as tf_session
  File "/home/zjuese/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 26, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/zjuese/anaconda2/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 22, in swig_import_helper
    _mod = imp.load_module('_pywrap_tensorflow', fp, pathname, description) …
Run Code Online (Sandbox Code Playgroud)

python ubuntu tensorflow

3
推荐指数
1
解决办法
1590
查看次数

标签 统计

python ×1

tensorflow ×1

ubuntu ×1