我在很长一段时间里都面临着这个错误。我在互联网上尝试了所有可能的解决方案。我正在为我的项目使用tensorflow 1.14.0,并且面临着这个错误。项目日期已到期。请帮帮忙。我的电脑规格:i5/8 8gb内存/内置显卡
C:\Users\skshr\.virtualenvs\ThesisProject\Scripts\python.exe C:/ThesisProject/estimators/estimator.py
Traceback (most recent call last):
File "C:\Users\skshr\.virtualenvs\ThesisProject\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\skshr\AppData\Local\Programs\Python\Python38\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\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\skshr\.virtualenvs\ThesisProject\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'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/ThesisProject/estimators/estimator.py", line 5, in <module>
import tensorflow as tf
File "C:\Users\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "C:\Users\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\skshr\.virtualenvs\ThesisProject\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\skshr\AppData\Local\Programs\Python\Python38\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\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\skshr\.virtualenvs\ThesisProject\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\skshr\.virtualenvs\ThesisProject\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.
See https://www.tensorflow.org/install/errors发布于 2020-12-29 23:13:05
您是否尝试过删除TensorFlow并更改您的TF版本?例如,到1.15?
https://stackoverflow.com/questions/65459915
复制相似问题