使用pip install安装scipy时出现错误消息

时间:2015-10-12 13:00:33

标签: python scipy pip

我正在尝试使用pip install通过命令提示符安装scipy库。

当我输入:

pip install scipy

我得到一面白色文字墙,以一段红色文字结尾,如下所示。

Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\stuart\\appdata\\local\\temp\\pip-build-edorla\\scipy\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\stuart\appdata\local\temp\pip-vegpqd-re
cord\install-record.txt --single-version-externally-managed --compile" failed wi
th error code 1 in c:\users\stuart\appdata\local\temp\pip-build-edorla\scipy

我已尝试搜索修复程序,并按照说明升级到我使用

完成的最新版本的setuptools
pip install --upgrade setuptools

然而,当我再次尝试安装时,我得到了同样的错误。

我可以使用pip install安装许多其他库,因此它似乎特定于scipy。

有人知道安装失败的原因吗?

1 个答案:

答案 0 :(得分:1)

似乎可能需要一个fortran编译器才能通过pip安装scipy - 我使用了sourceforge的.exe安装程序,它运行良好。

http://sourceforge.net/projects/scipy/files/scipy/0.11.0/