2017-04-11 94 views
1

在Windows 10中,作为命令提示符中的管理员,我想安装“scipy”。但这个命令后:PIP安装sctipy我一直面临着这些错误:python 3.5 Windows 10上的Scipy软件包安装

C:\WINDOWS\system32>pip install scipy 
Collecting scipy 
    Using cached scipy-0.19.0.zip 
                       Building wheels for collected packages: scipy 
    Running setup.py bdist_wheel for scipy ... error 
    Complete output from command c:\users\administrator\appdata\local\programs\python\python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-build-e1t3tsx1\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\ADMINI~1\AppData\Local\Temp\tmp_67ezs94pip-wheel- --python-tag cp35: 
    lapack_opt_info: 
    lapack_mkl_info: 
    libraries mkl_rt not found in ['c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\lib', 'C:\\', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\libs'] 
    NOT AVAILABLE 

    openblas_lapack_info: 
    libraries openblas not found in ['c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\lib', 'C:\\', 'c:\\users\\administrator\\appdata\\local\\programs\\python\\python35-32\\libs'] 
    NOT AVAILABLE 

    c:\users\administrator\appdata\local\programs\python\python35-32\lib\site-packages\numpy\distutils\system_info.py:572: UserWarning: 
     Lapack (http://www.netlib.org/lapack/) sources not found. 
     Directories to search for the sources can be specified in the 
     numpy/distutils/site.cfg file (section [lapack_src]) or by setting 
     the LAPACK_SRC environment variable. 
    self.calc_info() 
    NOT AVAILABLE 


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

我怎样才能解决这个问题?

谢谢。

回答

1

我建议通过车轮安装 - 它避免了需要编译它,在Windows上,可以是一个重大的痛苦。您可能需要下载scipy依赖的其他软件包。还有的车轮文件的便利存档这里,克里斯托夫Gohlke的礼貌:

pip install SomePackage-1.0-py2.py3-none-any.whl 

个人提示:http://www.lfd.uci.edu/~gohlke/pythonlibs/

如果你下载一个轮子,你可以通过使用PIP像往常一样,但引用车轮文件名安装 - 保持你需要的车轮文件。在pypi上托管的通常是安全的,但在其他地方它们可能会消失和/或被更新版本所取代。尽一切办法检查更新的版本,但如果它们完全消失,则可能会处于尴尬境地。

1

我想如果你重新安装Python安装工具,它会解决这个错误:如果可能的话

pip uninstall setuptools 
pip install setuptools