我完全新的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安装它们。 –