(解决方法)tensorflow ImportError: DLL load failed: 找不到指定的模块。

(解决方法)tensorflow ImportError: DLL load failed: 找不到指定的模块。

win10+anaconda+tensorflow
(解决方法)tensorflow ImportError: DLL load failed: 找不到指定的模块。_第1张图片
按照正常方法装好tensorflow之后,import一直不成功,每次都是这样的错误,按照网上能找到的教程试了好几天一直都不行,报错如下
Traceback (most recent call last):
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper
_mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, description)
File “D:\anaconda3\envs\tensorflow\lib\imp.py”, line 243, in load_module
return load_dynamic(name, filename, file)
File “D:\anaconda3\envs\tensorflow\lib\imp.py”, line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “”, line 1, in
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_init_.py”, line 101, in
from tensorflow_core import *
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core_init_.py”, line 40, in
from tensorflow.python.tools import module_util as module_util
File "D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_init
.py", line 50, in getattr
module = self.load()
File "D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_init
.py", line 44, in _load
module = importlib.import_module(self.name)
File "D:\anaconda3\envs\tensorflow\lib\importlib_init
.py", line 126, in import_module
return _bootstrap.gcd_import(name[level:], package, level)
File "D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python_init
.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py”, line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File “D:\anaconda3\envs\tensorflow\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py”, line 24, in swig_import_helper
_mod = imp.load_module(’_pywrap_tensorflow_internal’, fp, pathname, description)
File “D:\anaconda3\envs\tensorflow\lib\imp.py”, line 243, in load_module
return load_dynamic(name, filename, file)
File “D:\anaconda3\envs\tensorflow\lib\imp.py”, line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。

直到今天打开了tensorflow手册。。。
https://www.tensorflow.org/install/pip

(解决方法)tensorflow ImportError: DLL load failed: 找不到指定的模块。_第2张图片tensorflow2.1.0需要组件,按照提示下载一下vc就好了。

你可能感兴趣的:((解决方法)tensorflow ImportError: DLL load failed: 找不到指定的模块。)