无法在Ubuntu16.04上安装带有PyPy3.5 v7的Tensorflow

2024-09-26 22:53:20 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图用Python的py3.5发行版在ubuntu16.04上安装tensorflow==1.0.0。你知道吗

我能够在Python3 pypypy shell上导入numpy和除Tensorflow之外的所有其他库,在导入时我得到以下回溯:

'''
Traceback (most recent call last):
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/pywrap_tensorflow.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(__file__)])
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/lib-python/3/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/__init__.py", line 61, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/pywrap_tensorflow.py", line 20, in swig_import_helper
    import _pywrap_tensorflow
ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/__init__.py", line 24, in <module>
    from tensorflow.python import *
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/__init__.py", line 72, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/pywrap_tensorflow.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(__file__)])
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/lib-python/3/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/__init__.py", line 61, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/pywrap_tensorflow.py", line 28, in <module>
    _pywrap_tensorflow = swig_import_helper()
  File "/home/ubuntu/pypy3.5-v7.0.0-linux64/site-packages/tensorflow/python/pywrap_tensorflow.py", line 20, in swig_import_helper
    import _pywrap_tensorflow
ImportError: No module named '_pywrap_tensorflow'


Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.'''

Tags: inpyimporthomeubuntupackagestensorflowline

热门问题