ModuleNotFoundError:没有名为“ _pywrap_tensorflow_internal”的模块。无法加载本机TensorFlow运行时

时间:2020-06-05 14:10:51

标签: python tensorflow

我正在尝试使用TF 1.14(也尝试过1.5、1.8)。但是我总是会出错

Models init error! Message: Traceback (most recent call last):
  File "C:\Users\Doc\Desktop\JOB\First project\venviroment\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
  File "C:\Users\Doc\AppData\Local\Programs\Python\Python37-32\lib\imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Doc\Desktop\JOB\First project\venviroment\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Doc\Desktop\JOB\First project\venviroment\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Doc\Desktop\JOB\First project\venviroment\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
    import _pywrap_tensorflow_internal
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'


Failed to load the native TensorFlow runtime.

我该如何解决?我使用Windows 7,Python 3.7。处理器-英特尔酷睿i3

请帮助!

1 个答案:

答案 0 :(得分:0)

当我在 Linux Mint 下安装这些时,TF 没有问题。