无法导入tensorflow

时间:2017-08-06 04:36:35

标签: python-2.7 tensorflow

尝试导入tensorflow时出现以下错误

  

(tflow)sameer @ sameer-Inspiron-1545~ $ python Python 2.7.5+(默认情况下,   2014年2月27日,19:37:08)关于linux2的[GCC 4.8.1]输入“帮助”,   “版权”,“信用”或“许可”以获取更多信息。

     
    
      
        

将tensorflow导入为tf Traceback(最近一次调用最后一次):File中的文件“”,第1行         “/home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/init.py”         第24行,在             来自tensorflow.python import *文件“/home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/python/init.py”,         第49行,在             来自tensorflow.python import pywrap_tensorflow文件“/home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py”,         第52行             raise ImportError(msg)ImportError:Traceback(最近一次调用最后一次):File         “/home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py”         第41行,在             来自tensorflow.python.pywrap_tensorflow_internal import *文件“/home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,         第28行,在             _pywrap_tensorflow_internal = swig_import_helper()文件“/home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,         第24行,在swig_import_helper中             _mod = imp.load_module('_ pywrap_tensorflow_internal',fp,pathname,description)ImportError:         /home/sameer/tflow/local/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so:         未定义的符号:PyBytes_AsStringAndSize

      
    
  
     

无法加载本机TensorFlow运行时。

0 个答案:

没有答案