我首先得到了这个错误:
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之后,它打印了一堆红色代码(“在处理上面的异常时,出现了另一个错误:”,后面跟着很多文件路径),我没有在这里粘贴它,因为有很多这样的代码,可能对问题的解决没有用。我有python 3,在cmd中安装scipy时发生了以下错误。
然后我试着从http://www.lfd.uci.edu/~gohlke/pythonlibs上下载。
但它返回错误:
`C:\Users\Downloads>C:\Users\AppData\Local\Programs\Python\Python36-32\脚本\pip install scipy-0.19.1-cp36-cp36m-win_amd64.whl
scipy-0.19.1-cp36-cp36m-win_amd64.whl不是此平台上支持的轮子。‘
前两个路径是我写的(第一个是下载文件的路径,第二个是python脚本文件的路径(这是我应该在教程中做的))
有人能帮我解决这个问题吗?
发布于 2017-07-22 00:01:17
你必须首先从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兼容。
https://stackoverflow.com/questions/44983951
复制相似问题