簡體   English   中英

Pip 無法安裝 SciPy

[英]Pip fails to install SciPy

我一直在嘗試使用pip install scipy通過 pip 安裝 SciPy,但它給了我錯誤Failed building wheel for scipy ,隨后是Failed cleaning build dir for scipy

我曾試圖通過升級PIP pip install --upgrade 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)

當我嘗試升級 pip 時,它給出:

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

當我嘗試通過 anaconda 安裝它時,Windows 給出: The program has stopped responding

感謝所有幫助,請隨時發表評論,告訴我是否需要更多信息來幫助解決此問題。 我正在使用 Windows 10 以及 Python 3.6.2。

感謝jpmc26在解決方案的評論中:

  • 您需要從以下位置安裝非官方二進制文件: http : //www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

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

  • 確保為您的系統(32 位與 64 位)和 Python 版本使用正確的版本

  • 您還需要查看站點包,看看那里是否有垃圾。 如果有,刪除它。

我以前遇到過這個問題,我的解決方案是安裝所需的依賴項。 我似乎記得scipy需要先安裝numpy 也許先嘗試pip install numpy

SciPy 安裝頁面顯示:

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

我也努力嘗試為一些較舊的教程腳本創建一個向后兼容的環境。 我需要Scipy==0.18.2 所以我在Anaconda 上搜索,發現:
conda install -c esri scipy
這很順利。

通過以下鏈接下載軟件包的最佳方式: https : //pypi.org/project/scipy/#files

通過pip install安裝這個文件:可以看到安裝下載的包

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM