Python 操作系统X上的Cython安装错误
我试图用pip、easy_安装和源代码安装Cython。我在OsX Maverics上犯了以下错误:Python 操作系统X上的Cython安装错误,python,macos,pip,osx-mavericks,cython,Python,Macos,Pip,Osx Mavericks,Cython,我试图用pip、easy_安装和源代码安装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 erro
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
我正在使用python2.7.5
pip version 1.4.1
如何解决此错误?这是小牛的问题。您可以通过以下方式规避此问题: 终端:
sudo CFLAGS=-Wunused-command-line-argument-hard-error-in-future pip install cython
这将抑制错误作为警告,允许您安装cython。这是Mavericks的问题。您可以通过以下方式规避此问题: 终端:
sudo CFLAGS=-Wunused-command-line-argument-hard-error-in-future pip install cython
这将抑制错误作为警告,允许您安装cython。Duplicate of:Duplicate of: