2017-08-09 217 views
1

我一直試圖通過點與pip install scipy安裝SciPy,但它給了我錯誤Failed building wheel for scipy,及時跟着Failed cleaning build dir for scipyPip無法安裝SciPy

我試過通過pip install --upgrade pip作爲建議here升級點,通過anaconda安裝它,建議here以及pip建議的解決方案。這些解決方案之中:

- `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) 

和:

- `pip install .`  (from a git repo or downloaded source 
          release) 
- `pip install scipy` (last SciPy release on PyPI) 

當我嘗試升級點子它給:

Requirement already up-to-date: pip in c:\users\admin\appdata\local\programs\python\python36-32\lib\site-packages 

當我試圖通過蟒蛇的Windows安裝它給出了:The program has stopped responding

所有幫助表示感謝,請隨時留下評論告訴我是否有更多的信息需要幫助解決這個問題。我使用的是Windows 10以及Python 3.6.2。

+0

[在Windows上安裝SciPy的]的可能的複製(https://stackoverflow.com/questions/45485399/installing-scipy-on-windows) –

+0

我試圖通過蟒蛇安裝它(我使用的Spyder ),但它仍然失敗 –

+0

嘗試'PIP安裝 - 升級PIP'並再試一次,或者可能'Python -m PIP安裝 - 升級PIP' – Uvar

回答

1

由於在該解決方案的意見jpmc26

  • 您需要從安裝非官方的二進制:http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

  • 安裝它執行:pip install C://Users/YOUR_USERNAME/Downloads/SCIPY_FILE

  • 確保您使用正確的版本爲您的系統(32位和64位),併爲您的Python版本

  • 您還需要尋找到站點包,看看是否有垃圾存在。如果有,請刪除它。

0

我以前遇到過這個問題,而我的解決方案是安裝需要的依賴關係。我似乎回想起scipy需要先安裝numpy。也許先嚐試pip install numpy

SciPy install page表明這一點:

pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose 
+0

我已經安裝了numpy:'需求已經滿足:numpy in c:\ users \ admin \ appdata \ local \ programs \ python \ python36-32 \ lib \ site-packages' –

+0

至於scipy安裝頁面的建議,我以前沒有的東西,但給了我同樣的scipy錯誤:'失敗的建設輪scipy'和'失敗的清理建立目錄爲scipy' –