Os X上的Cython安装错误

时间:2014-03-29 17:18:12

标签: python macos pip osx-mavericks cython

我尝试使用pip,easy_install和源代码安装Cython。我在OsX Maverics上接受了以下错误:

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

我正在使用Python 2.7.5

pip version 1.4.1

如何解决此错误?

1 个答案:

答案 0 :(得分:5)

这是小牛队的一个问题。您可以按照以下方式规避:

终端:

sudo CFLAGS=-Wunused-command-line-argument-hard-error-in-future pip install cython

这会将错误抑制为警告,允许您安装cython。

相关问题