pip 在MAC上安装库错误clang: error: unknown argument

本文介绍了如何解决在使用pip安装程序时遇到的错误,特别是针对未知参数'-mno-fused-madd'的问题,并提供了设置环境变量ARCHFLAGS来规避此问题的方法。

pip安装程序错误

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

Projects using invalid compiler options will need to be changed to remove those options. 

To help ease that transition, the compiler will temporarily accept an option to downgrade the error to a warning: 

-Wno-error=unused-command-line-argument-hard-error-in-future

To workaround this issue, set the ARCHFLAGS environment variable to downgrade the error to a warning. 

For example, you can install a Python native extension with: 

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future easy_install ExtensionName
Similarly, you can install a Ruby Gem with: 

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future gem install GemName (16214764)

Note: This option will not be supported in the future.



参照:

https://developer.apple.com/library/ios/releasenotes/developertools/rn-xcode/xc5_release_notes/xc5_release_notes.html

http://www.bkjia.com/Pythonjc/779173.html

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

http://stackoverflow.com/questions/22413050/cant-install-python-mysql-library-on-mac-mavericks

http://stackoverflow.com/questions/22079173/installing-py-ldap-on-mac-os-x-mavericks-missing-sasl-h

http://stackoverflow.com/questions/22413050/cant-install-python-mysql-library-on-mac-mavericks


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值