我有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發行版。 –