2017-07-08 110 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兼容。