【发布时间】:2015-10-12 21:47:07
【问题描述】:
我正在尝试使用 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
我已尝试搜索修复程序,并按照说明升级到我使用
完成的最新版本的 setuptoolspip install --upgrade setuptools
但是,当我再次尝试安装时,我得到了同样的错误。
我可以使用 pip install 安装许多其他库,因此它似乎是特定于 scipy 的。
有人知道安装失败的原因吗?
【问题讨论】:
-
在windows上安装scipy有什么要求?
-
感谢您的提示 - 快速搜索后,似乎可能需要一个 fortran 编译器来通过 pip 安装 scipy - 我使用了 sourceforge 的 .exe 安装程序,它运行良好。干杯:D