Python第三方库import numpy出错

import numpy 出错

>>>import numpy                                                                                                                                    
Traceback (most recent call last):                                                                                                                  
  File "C:\Users\UK03306\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\__init__.py", line 16, in                      
from . import multiarray                                                                                                                        
ImportError: DLL load failed: The specified procedure could not be found.                                                                           
                                                                                                                                                
During handling of the above exception, another exception occurred:                                                                                 
                                                                                                                                                
Traceback (most recent call last):                                                                                                                  
  File "", line 1, in                                                                                                                
  File       "C:\Users\UK03306\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\__init__.py", line 142, in                          
from . import add_newdocs                                                                                                                       
File "C:\Users\UK03306\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\add_newdocs.py", line 13, in                        
from numpy.lib import add_newdoc                                                                                                                
File "C:\Users\UK03306\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\__init__.py", line 8, in                        
from .type_check import *                                                                                                                       
File "C:\Users\UK03306\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\type_check.py", line 11, in                     
import numpy.core.numeric as _nx                                                                                                                
File "C:\Users\UK03306\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\__init__.py", line 26, in                      
raise ImportError(msg)                                                                                                                          
ImportError:                                                                                                                                        
Importing the multiarray numpy extension module failed.  Most                                                                                       
likely you are trying to import a failed build of numpy.                                                                                            
If you're working with a numpy git repo, try `git clean -xdf` (removes all                                                                          
files not under version control).  Otherwise reinstall numpy. 

最后的解决办法是卸载了Python3.6.0,重新安装了Python3.6.2。

你可能感兴趣的:(Python第三方库import numpy出错)