2017-06-22 161 views
0

我的環境:Win10 64位,Python 3.6和我使用pip安裝來安裝NumPy而不是Anaconda。 NumPy版本:1.13.0導入NumPy給我ImportError:DDL加載失敗:找不到指定的過程?

我見過幾個人發佈了類似的問題,但其中大多數都使用Python 2.7。到目前爲止,我所見過的最接近的解決方案是:https://github.com/ContinuumIO/anaconda-issues/issues/1508https://github.com/numpy/numpy/issues/9272。但似乎他們最終沒有解決它,發佈它的人使用Python 2.7。因此,我想知道是否有人可以幫助我解決這個問題。我的錯誤日誌如下。任何幫助,將不勝感激。

C:\Users\Kevin>python 
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit 
(Intel)] on win32 
Type "help", "copyright", "credits" or "license" for more information. 
>>> import numpy 
Traceback (most recent call last): 
    File "D:\Python3.6\lib\site-packages\numpy\core\__init__.py", line 16, in 
<module> 
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 "<stdin>", line 1, in <module> 
    File "D:\Python3.6\lib\site-packages\numpy\__init__.py", line 142, in 
<module> 
    from . import add_newdocs 
    File "D:\Python3.6\lib\site-packages\numpy\add_newdocs.py", line 13, in 
<module> 
    from numpy.lib import add_newdoc 
    File "D:\Python3.6\lib\site-packages\numpy\lib\__init__.py", line 8, in 
<module> 
    from .type_check import * 
    File "D:\Python3.6\lib\site-packages\numpy\lib\type_check.py", line 11, in 
<module> 
    import numpy.core.numeric as _nx 
    File "D:\Python3.6\lib\site-packages\numpy\core\__init__.py", line 26, in 
<module> 
    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. 

Original error was: DLL load failed: The specified procedure could not be 
found. 
+0

看到的是https:// github.com/numpy/numpy/issues/9272 – cgohlke

+0

@cgohlke是的我看到太大聲了,最後我決定回滾版本 –

回答

0

你應該去幹淨安裝numpy。只是不要用傳統的方式去下載輪盤文件。您可以從這裏獲取車輪文件:http://www.lfd.uci.edu/~gohlke/pythonlibs/。下載此文件numpy‑1.13.0+mkl‑cp36‑cp36m‑win_amd64.whl並使用pip安裝此輪。通過從shell導入numpy來檢查。

+0

是的,我認爲這是由於一些兼容性問題,因爲當我回滾版本時,它工作正常。 –

+0

它解決了你的問題嗎?如果它確實可以接受我的答案?謝謝 –

0

如果你不想尋找車輪文件只需卸載numpy的安裝舊版本打擾:

pip3 uninstall numpy 
pip3 install 'numpy<1.13' 
0

卸載與NumPy以及該類型後:

pip3 install numpy==1.12 
相關問題