我有Python 2.7.9在Windows 7 64位。我试图用pip安装scipy。我用pip install scipy
但我得到以下错误:“失败,错误代码1”,同时安装scipy
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
我搜索谷歌和计算器的解决方案,但毫无效果。我尝试升级点,它并没有工作。
这里是我安装的软件包及其版本:
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)
什么是完整的堆栈跟踪?你可能需要'sudo apt-get install'和'scipy'一起做一些事情,因为它有很多依赖关系。我记得在安装scipy的时候,必须为几个库做这件事。 – IanAuld
获取二进制文件。 http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy 这里可能的重复: http://stackoverflow.com/questions/28142839/pip-install-numpy-python-2- 7-fails-with-errorcode-1 –
@IanAuld,这是Windows。不是Ubuntu或另一个具有aptitude存储库的Linux发行版。 –