Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Tensorflow没有名为'的模块_pywrap_tensorflow_internal';(DLL似乎没有问题)_Python_Tensorflow_Python Import_Importerror - Fatal编程技术网

Python Tensorflow没有名为'的模块_pywrap_tensorflow_internal';(DLL似乎没有问题)

Python Tensorflow没有名为'的模块_pywrap_tensorflow_internal';(DLL似乎没有问题),python,tensorflow,python-import,importerror,Python,Tensorflow,Python Import,Importerror,我不得不重新安装python(这是一个混乱的过程,但据我所知,它似乎已经完全重新安装了,没有留下任何痕迹),虽然我以前从未运行过它,但最近我想开始运行TensorFlow,不幸的是,每当我尝试导入模块时,它都会引发错误。在过去的几天里,我将所有可能的Cuda和Cudnn dll添加到我的路径中,并找到了所有建议的其他解决方案,但都没有产生任何效果。(我认为随机信息与此无关,但我放在这里只是为了以防万一:Pip停止查找TensorFlow,因此我在通过Pip安装时使用了google链接,虽然我有最

我不得不重新安装python(这是一个混乱的过程,但据我所知,它似乎已经完全重新安装了,没有留下任何痕迹),虽然我以前从未运行过它,但最近我想开始运行TensorFlow,不幸的是,每当我尝试导入模块时,它都会引发错误。在过去的几天里,我将所有可能的Cuda和Cudnn dll添加到我的路径中,并找到了所有建议的其他解决方案,但都没有产生任何效果。(我认为随机信息与此无关,但我放在这里只是为了以防万一:Pip停止查找TensorFlow,因此我在通过Pip安装时使用了google链接,虽然我有最新的python 3,但我也有python 2.7,如果我运行一个用python3导入的脚本,脚本将立即结束,没有错误,但如果我运行它使用传统的“python”命令(来自cmd),会引发以下错误) 操作系统:Windows 10

Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 23:11:46) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
Traceback (most recent call last):
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\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:\Program Files\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\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\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 "<stdin>", line 1, in <module>
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\__init__.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow  # pylint: disable=unused-import
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\__init__.py", line 49, in <module>
    from tensorflow.python import pywrap_tensorflow
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
    raise ImportError(msg)
ImportError: Traceback (most recent call last):
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\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:\Program Files\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\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "C:\Users\Paul Duke\AppData\Roaming\Python\Python38\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

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.
win32上的Python 3.8.1(tags/v3.8.1:1b293b6,2019年12月18日,23:11:46)[MSC v.1916 64位(AMD64)] 有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。 >>>输入张量流 回溯(最近一次呼叫最后一次): 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow\u internal.py”,第18行,在swig\u import\u helper中 fp,路径名,description=imp.find_模块(“pywrap_tensorflow_internal”,[dirname(u文件)] 文件“C:\Program Files\Python38\lib\imp.py”,第296行,在find_模块中 引发导入错误(_ERR_MSG.format(name),name=name) ImportError:没有名为“\u pywrap\u tensorflow\u internal”的模块 在处理上述异常期间,发生了另一个异常: 回溯(最近一次呼叫最后一次): 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow.py”,第58行,在 从tensorflow.python.pywrap\u tensorflow\u内部导入* 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow\u internal.py”,第28行,在 _pywrap\u tensorflow\u internal=swig\u import\u helper() 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow\u internal.py”,第20行,在swig\u import\u helper中 导入\u pywrap\u tensorflow\u内部 ModuleNotFoundError:没有名为“\u pywrap\u tensorflow\u internal”的模块 在处理上述异常期间,发生了另一个异常: 回溯(最近一次呼叫最后一次): 文件“”,第1行,在 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\ \uuuuu init\uuuu.py”,第24行,在 从tensorflow.python导入pywrapu tensorflow 35; pylint:disable=未使用的导入 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\\uuuuu init\uuuu.py”,第49行,在 从tensorflow.python导入pywrap\u tensorflow 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow.py”,第74行,在 提高效率(msg) ImportError:回溯(最近一次呼叫上次): 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow\u internal.py”,第18行,在swig\u import\u helper中 fp,路径名,description=imp.find_模块(“pywrap_tensorflow_internal”,[dirname(u文件)] 文件“C:\Program Files\Python38\lib\imp.py”,第296行,在find_模块中 引发导入错误(_ERR_MSG.format(name),name=name) ImportError:没有名为“\u pywrap\u tensorflow\u internal”的模块 在处理上述异常期间,发生了另一个异常: 回溯(最近一次呼叫最后一次): 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow.py”,第58行,在 从tensorflow.python.pywrap\u tensorflow\u内部导入* 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow\u internal.py”,第28行,在 _pywrap\u tensorflow\u internal=swig\u import\u helper() 文件“C:\Users\Paul Duke\AppData\Roaming\Python38\site packages\tensorflow\Python\pywrap\u tensorflow\u internal.py”,第20行,在swig\u import\u helper中 导入\u pywrap\u tensorflow\u内部 ModuleNotFoundError:没有名为“\u pywrap\u tensorflow\u internal”的模块 未能加载本机TensorFlow运行时。 看见https://www.tensorflow.org/install/errors 因为一些常见的原因和解决方案。包括整个堆栈跟踪 以上是请求帮助时的错误消息。
您正在使用Python 3.8

从 以及

这是你的电话号码

所以,只要使用旧版本的python就可以解决这个问题。我建议您使用或miniconda来管理您的深入学习开发环境