[英]Error in SciPy installation in Windows 64-bit using pip
我是使用Python的新手。 我在我的Windows 64位計算機上安裝了python 2.7。 當我嘗試使用pip安裝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
有人可以告訴我,為什么會發生這種情況,可能是什么原因以及如何糾正它。
scipy
依賴於其他包。 從錯誤中,你缺少mkl
和openblas
。 正如@Paddy推薦的那樣,使用conda可以使安裝變得更加容易,因為它可以為您處理所有的包依賴項。
您可以卸載當前版本的Python並安裝帶有conda的Anaconda和包括scipy
在內的大量其他軟件包。
或者您可以安裝miniconda,它會為您當前的設置添加conda。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.