2017-07-08 176 views
1

我第一次得到這個錯誤:SciPy的安裝紙錯誤

Downloading scipy-0.19.1.tar.gz (14.1MB) 
    100% |████████████████████████████████| 14.1MB 36kB/s 
Building wheels for collected packages: scipy 
    Running setup.py bdist_wheel for scipy ... error 
    Failed building wheel for scipy 
    Running setup.py clean for scipy 
    Complete output from command c:\users\appdata\local\programs\python\pytho 
n36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\URO~1\ 
\AppData\\Local\\Temp\\pip-build-kk764kiy\\scipy\\setup.py';f=getattr(tokenize, 
'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compi 
le(code, __file__, 'exec'))" clean --all: 

    `setup.py clean` is not supported, use one of the following instead: 

    - `git clean -xdf` (cleans all files) 
    - `git clean -Xdf` (cleans all versioned files, doesn't touch 
         files that aren't checked into the git repo) 

    Add `--force` to your command to use it anyway if you must (unsupported). 


---------------------------------------- 
Failed cleaning build dir for scipy 
Failed to build scipy 
Installing collected packages: scipy 
Running setup.py install for scipy ... error 

之後,它打印一串紅代碼(「在處理異常以上,另一excwption發生」,其次是大量的文件路徑),我沒'粘貼它在這裏,因爲它的很多,可能是無用的解決問題。我有python 3和下面的錯誤發生時,試圖安裝scipy cmd。

然後我試着從http://www.lfd.uci.edu/~gohlke/pythonlibs下載。

但它返回的錯誤:

`C:\ Users \用戶下載> C:\用戶\應用程序數據\本地\程序\ Python的\ Python36-32 \ 腳本\ PIP安裝SciPy的-0.19.1-CP36 -cp36m-win_amd64.whl

SciPy的-0.19.1-CP36-cp36m-win_amd64.whl未在此platform.`支持輪

首先兩條路是我寫的(第一個是路徑到下載的文件是,第二個python腳本文件(這就是我通過教程所做的)

任何人都可以請幫我解決這個問題嗎?

+2

scipy版本與您的Python版本不匹配。在我看來,你正在試圖用32位python安裝64位scipy。嘗試使用32位scipy版本。 –

回答

0

您必須先從http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy安裝numpy-1.13.1 + mkl-cp36-cp36m-win_amd64.whl。這將刪除任何以前安裝的numpy並安裝它的新版本。

然後你得像你一樣安裝scipy-0.19.1-cp36-cp36m-win_amd64.whl。

請注意,請檢查您的Python版本,numpy和scipy,這裏是否與python 3.6兼容。