Os X上的Cython安装错误

ayy*_*mbo 0 python macos pip cython osx-mavericks

我尝试使用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
Run Code Online (Sandbox Code Playgroud)

我在用 Python 2.7.5

pip version 1.4.1
Run Code Online (Sandbox Code Playgroud)

我该如何解决这个错误?

uba*_*dub 5

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

终奌站:

sudo CFLAGS=-Wunused-command-line-argument-hard-error-in-future pip install cython
Run Code Online (Sandbox Code Playgroud)

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