我完全新的Python的,我想基於http://nltk.org/install.html無法在山獅安裝numpy的
我已經安裝了除numpy
一切安裝NLTK(它說:numpy
是可選的,但是當我嘗試導入nltk
,它說有一個錯誤,因爲它找不到numpy
模塊)
我跑sudo pip install -U numpy
我在Mac上運行與山獅,蟒蛇v2.7.3
後210我碰到下面的錯誤(我只包含日誌的末尾):
File "/private/tmp/pip-build/numpy/numpy/core/setup.py", line 696, in get_mathlib_info
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError: Broken toolchain: cannot link a simple C program
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/numpy
有沒有人看到這種情況發生?
是否採取行動開心就好有關編譯程序?即您是否安裝並正確配置了編譯器? – mgilson
如果您使用OS X系統Python 2.7('/ usr/bin/python2.7'),Apple已經包含了'setuptools'和'numpy'版本,因此您不需要使用該Python安裝它們。 –