ImportError:DLL加载失败:动态链接库(DLL)初始化例程失败。赢得10个64位Python 3.7

时间:2020-09-09 07:35:36

标签: python tensorflow

嗨,我正在尝试将tensorflow包导入到Win10 64位python 3.7.0中,它给了我以下错误。 我也尝试过dll替换,并重新安装,更新V C ++软件包。

>>> import tensorflow                                                                                                                                                   
Traceback (most recent call last):                                                                                                                                        
File "C:\Users\acer\AppData\Roaming\Python\Python37\site-
packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>                                           
from tensorflow.python._pywrap_tensorflow_internal import *                                                                                                         
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine 
failed.                                                                                                                                                                                                                                                       
During handling of the above exception, another exception occurred:                                                                                                                                                                                                                                                                             
Traceback (most recent call last):                                                                                                                                        
File "<stdin>", line 1, in <module>                                                                                                                                     
File "C:\Users\acer\AppData\Roaming\Python\Python37\site-
packages\tensorflow\__init__.py", line 41, in <module>                                                           
from tensorflow.python.tools import module_util as _module_util                                                                                                       
File "C:\Users\acer\AppData\Roaming\Python\Python37\site-
packages\tensorflow\python\__init__.py", line 39, in <module>                                                    
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow                                                                                                 
File "C:\Users\acer\AppData\Roaming\Python\Python37\site-
packages\tensorflow\python\pywrap_tensorflow.py", line 83, in <module>                                           
raise ImportError(msg)                                                                                                                                              
ImportError: Traceback (most recent call last):                                                                                                                           
File "C:\Users\acer\AppData\Roaming\Python\Python37\site-
packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>                                           
from tensorflow.python._pywrap_tensorflow_internal import *                                                                                                         
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine 
failed.                                                                                                                                                                                                                                                                                                                                                                                                                               
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. 

0 个答案:

没有答案
相关问题