2017-03-10 72 views
1

我是使用Python的新手。我在我的Windows 64位计算机上安装了python 2.7。当我尝试使用PIP安装scipy,我收到此错误:使用pip在Windows 64位中进行SciPy安装时出错

C:\Python27\Scripts>pip install scipy 
Collecting scipy 
    Using cached scipy-0.19.0.zip 
Installing collected packages: scipy 
    Running setup.py install for scipy ... error 
    Complete output from command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\vamshi\\appdata\\local\\temp\\pip-build-nqaj7b\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\vamshi\appdata\local\temp\pip-7jix0g-record\install-record.txt --single-version-externally-managed --compile: 

注:如果您需要可靠的卸载行为,然后再安装 与PIP而不是使用setup.py install

- `pip install .`  (from a git repo or downloaded source release) 
    - `pip install scipy` (last SciPy release on PyPI) 


lapack_opt_info: 
lapack_mkl_info: 
    libraries mkl_rt not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python27\\libs'] 
    NOT AVAILABLE 

openblas_lapack_info: 
    libraries openblas not found in ['c:\\python27\\lib', 'C:\\', 'c:\\python27\\libs'] 
    NOT AVAILABLE 

有人能告诉我,为什么会发生这种情况,可能是什么原因,我该如何纠正它。

+0

我建议你安装anaconda软件包(https://www.continuum.io/downloads),它拥有开始使用python所需的一切。 – Paddy

回答

0

scipy依赖于其他包。从错误中,您缺少mklopenblas。正如@Paddy所建议的那样,使用conda可以使安装变得更加轻松,因为它可以为您处理所有的软件包依赖关系。

您可以卸载当前版本的Python,然后安装Anaconda,它附带了conda和大量其他软件包,包括scipy

或者您可以安装miniconda,它将conda添加到您当前的设置。