无法在Mountain Lion上安装Numpy [英] Can't install numpy on Mountain Lion
问题描述
我对Python完全陌生,我正在尝试基于 http://nltk.org安装NLTK /install.html
I'm completely new to Python, I'm trying to install NLTK based on http://nltk.org/install.html
我已经安装了除numpy
以外的所有内容(它说numpy
是可选的,但是当我尝试导入nltk
时,它说有一个错误,因为它找不到numpy
模块)
I've got everything installed except for numpy
(it says numpy
is optional but when I try to import nltk
, it says there's an error because it couldn't find the numpy
module)
我运行sudo pip install -U numpy
我在装有Mountain Lion,python v2.7.3的Mac上运行
I'm running on a Mac with Mountain Lion, python v2.7.3
我收到以下错误(我只包括日志结尾):
I get the following error (I only included the end of log):
get_mathlib_info中的文件"/private/tmp/pip-build/numpy/numpy/core/setup.py"第696行
File "/private/tmp/pip-build/numpy/numpy/core/setup.py", line 696, in get_mathlib_info
提高RuntimeError(工具链损坏:无法链接简单的C程序")
raise RuntimeError("Broken toolchain: cannot link a simple C program")
RuntimeError:断开的工具链:无法链接简单的C程序
RuntimeError: Broken toolchain: cannot link a simple C program
/tmp/pip-build/numpy中的命令python setup.py egg_info命令失败,错误代码为1
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/numpy
有人见过这种情况吗?
推荐答案
最近我一直在与
c声:错误:未知参数:'-mno-fused-madd' [-将来的命令行参数很难解决的错误]
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
请参见此处进行修复:
clang错误:未知参数:' -mno-fused-madd'(Python软件包安装失败)
这篇关于无法在Mountain Lion上安装Numpy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!