[英]tensorflow 2.3.1 ImportError: DLL load failed: The specified module could not be found
I've read multiple posts regarding this problem however no luck fixing it.我已经阅读了多篇关于这个问题的帖子,但是没有成功解决它。
I am using tensorflow-cpu version 2.3.1, Python 3.7.3.我正在使用 tensorflow-cpu 版本 2.3.1,Python 3.7.3。 I have downloaded using pip.
我是用pip下载的。 I keep on getting
ImportError
and not sure what to do from here, most post talks about tensorflow-gpu version.我不断收到
ImportError
并且不知道从这里开始做什么,大多数帖子都在谈论 tensorflow-gpu 版本。
Here is my full Traceback:这是我的完整回溯:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\haneu\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\__init__.py", line 41, in <module>
from tensorflow.python.tools import module_util as _module_util
File "C:\Users\haneu\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 40, in <module>
from tensorflow.python.eager import context
File "C:\Users\haneu\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\eager\context.py", line 35, in <module>
from tensorflow.python import pywrap_tfe
File "C:\Users\haneu\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tfe.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\haneu\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\haneu\AppData\Local\Continuum\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.
After uninstalling all Visual Studio previous version and re-installing new one, it got rid of ImportError
thanks to Tensorflow Error: ImportError: DLL load failed: The specified module could not be found卸载所有 Visual Studio 以前的版本并重新安装新版本后,由于Tensorflow 错误:ImportError:DLL 加载失败:找不到指定的模块,它摆脱了
ImportError
However after that I kept on getting ModuleNotFoundError
everytime I've got this, uninstalled that module and re-installed it.但是,在那之后,每次我得到这个模块时,我都会收到
ModuleNotFoundError
,卸载该模块并重新安装它。 My guess is that there were versions not compatible with each other.我的猜测是存在彼此不兼容的版本。 But anyways it had fixed my problem.
但无论如何它已经解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.