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

来源:互联网 发布:js设置div边框颜色 编辑:程序博客网 时间:2024/06/17 14:58

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 futureerror: 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


0 0
原创粉丝点击