2017-08-09 219 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' –