“失败,错误代码 1"安装 scipy 时 [英] "failed with error code 1" while installing scipy
问题描述
我在 Windows 7 64 位上安装了 Python 2.7.9.我正在尝试使用 pip 安装 scipy.我使用了 pip install scipy
但出现以下错误:
I have Python 2.7.9 on windows 7 64-bits. I'm trying to install scipy using pip. I used pip install scipy
but I get the following error :
Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\admin\\appdata\\local\\temp\\pip-build-xpl5cw\\scipy\\setup.py';exec(compil
e(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file
__, 'exec'))" install --record c:\users\admin\appdata\local\temp\pip-b68pfc-reco
rd\install-record.txt --single-version-externally-managed --compile" failed with
error code 1 in c:\users\admin\appdata\local\temp\pip-build-xpl5cw\scipy
我在 google 和 stackoverflow 上搜索了解决方案,但没有任何效果.我尝试升级 pip 但它也不起作用.
I searched on google and stackoverflow for solutions but nothing worked. I tried upgrading pip and it didn't work too.
这是我安装的软件包及其版本:
Here are my installed packages and their versions :
httplib2 (0.9.1)
nltk (3.0.3)
nose (1.3.7)
numpy (1.9.2)
pip (7.0.3)
pytz (2015.4)
scikit-learn (0.16.1)
setuptools (17.1.1)
six (1.9.0)
twilio (4.4.0)
wheel (0.24.0)
推荐答案
在 Windows 上,您需要使用非官方的预编译二进制文件:
On Windows, you'll need to use the unofficial precompiled binaries:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
选择与您的架构和 Python 版本匹配的版本.
Select the version matching your architecture and Python version.
这篇关于“失败,错误代码 1"安装 scipy 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!