无法在Ubuntu-16.04上安装带有PyPy3.5 v7的Tensorflow

时间:2019-05-03 12:35:36

标签: python numpy tensorflow pypy

我正在尝试使用Python的PyPy3.5发行版在ubuntu16.04上安装tensorflow == 1.0.0。

除了Tensorflow,我能够在python3-PyPy外壳上导入numpy和所有其他库,在导入时,我得到以下Traceback:

'''
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.'''

0 个答案:

没有答案