简体   繁体   English

tensorflow 2.3.1 导入错误:DLL 加载失败:找不到指定的模块

[英]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.

相关问题 Tensorflow:ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow: ImportError: DLL load failed: The specified module could not be found Windows 上的 Tensorflow - ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found Tensorflow 错误:ImportError: DLL 加载失败:找不到指定的模块 - Tensorflow Error: ImportError: DLL load failed: The specified module could not be found Tensorflow: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: 找不到指定的模块 - Tensorflow: ImportError: DLL load failed while importing _pywrap_tensorflow_internal: The specified module could not be found 尝试安装TensorFlow- GPU ...失败,但出现ImportError:DLL加载失败:找不到指定的模块 - Trying to install TensorFlow- GPU…failed with ImportError: DLL load failed: The specified module could not be found Tensorflow 库导入错误:DLL 加载失败:找不到指定的程序 - Tensorflow library ImportError: DLL load failed: The specified procedure could not be found 导入错误:DLL 加载失败:找不到指定的模块。 Tensorflow 聊天机器人 - ImportError: DLL load failed: The specified module could not be found. Tensorflow Chatbot Anaconda Tensorflow- ImportError: DLL 加载失败:找不到指定的模块 - Anaconda Tensorflow- ImportError: DLL load failed: The specified module could not be found Tensorflow-GPU安装ImportError:DLL加载失败:找不到指定的模块 - Tensorflow-GPU Installation ImportError: DLL load failed: The specified module could not be found 导入 tensorflow 时,出现错误“导入错误:DLL 加载失败:找不到指定的模块。” - While importing tensorflow, got the error 'ImportError: DLL load failed: The specified module could not be found.'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM