使用PIP中的Windows 64位中的Scipy安装错误



我是使用Python的新秀。我的Windows 64位计算机中安装了Python 2.7。当我尝试使用PIP安装scipy时,我会遇到此错误:

C:Python27Scripts>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:python27python.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('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:usersvamshiappdatalocaltemppip-7jix0g-recordinstall-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依赖其他软件包。从错误中,您缺少mklopenblas。如@Paddy所推荐的那样,使用Conda使安装变得更加容易,因为它为您处理所有包装依赖项。

您可以卸载当前版本的Python并安装Anaconda,该版本带有Conda和许多其他软件包,包括scipy

或者您可以安装Miniconda,这将Conda添加到您当前的设置中。

最新更新