Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 操作系统X上的Cython安装错误_Python_Macos_Pip_Osx Mavericks_Cython - Fatal编程技术网

Python 操作系统X上的Cython安装错误

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

我试图用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

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: