zl程序教程

您现在的位置是:首页 >  其它

当前栏目

成功解决ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

解决 成功 No Tensorflow module named internal ModuleNotFoundError
2023-09-14 09:04:51 时间

成功解决ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

 

 

 

目录

解决问题

解决思路

解决方法


 

 

 

解决问题

Traceback (most recent call last):
  File "F:\Program Files\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
    from tensorflow.python.pywrap_tensorflow_internal import *
  File "F:\Program Files\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 17, in <module>
    _pywrap_tensorflow_internal = swig_import_helper()
  File "F:\Program Files\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 16, in swig_import_helper
    return importlib.import_module('_pywrap_tensorflow_internal')
  File "F:\Program Files\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'

 

 

解决思路

找不到模块错误:没有名为“_pywrap_tensorflow_internal”的模块

 

 

 

 

 

解决方法

Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.  Include the entire stack trace above this error message when asking for help.

博主采用的方法是将Cuda重新安装即可!

参考文章
TF学习——TF安装(Cuda/Cudnn):Win10下安装深度学习框架Tensorflow+Cuda+Cudnn最简单最快捷最详细攻略(图文教程)