安装pycrypto 时 error: command 'cc' failed with exit status 1错误解决

$ sudo pip install pycrypto

报错

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os-pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall-Wstrict-prototypes -Wshorten-64-to-32-DNDEBUG -g -fwrapv -Os-Wall-Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -DPSYCOPG_DEFAULT_PYDATETIME=1-DPSYCOPG_VERSION="2.5.2 (dt dec pq3 ext)"-DPG_VERSION_HEX=0x090303-DPSYCOPG_EXTENSIONS=1-DPSYCOPG_NEW_BOOLEAN=1-DHAVE_PQFREEMEM=1-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7-I.-I/usr/local/Cellar/postgresql/9.3.3/include -I/usr/local/Cellar/postgresql/9.3.3/include/server -c psycopg/psycopgmodule.c -o build/temp.macosx-10.9-intel-2.7/psycopg/psycopgmodule.o

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

 

解决

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

sudo -E pip install pycrypto

 

 

原网址

http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值