张量流'_pywrap_tensorflow_internal'模块错误



我很长时间以来一直面临这个错误。我在互联网上尝试了所有可能的解决方案。我在我的项目中使用tensorflow 1.14.0,并面临这个错误。项目日期到期。请帮忙。我的电脑规格:i5/8gb内存/内置图形

C:Usersskshr.virtualenvsThesisProjectScriptspython.exe C:/ThesisProject/estimators/estimator.py
Traceback (most recent call last):
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
File "C:UsersskshrAppDataLocalProgramsPythonPython38libimp.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:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_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:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflow__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpython__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 18, in swig_import_helper
fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])
File "C:UsersskshrAppDataLocalProgramsPythonPython38libimp.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:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:Usersskshr.virtualenvsThesisProjectlibsite-packagestensorflowpythonpywrap_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

您是否尝试删除TensorFlow并更改TF版本?例如,到1.15?

相关内容

  • 没有找到相关文章

最新更新