clang error: unknown argument: ' -mno-fused-madd' (python package installation failure)
When installing psycopg2 via pip on Mavericks 10.9, an error may arise during compilation:
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
Resolution:
To resolve this issue, set environment variables prior to compilation:
export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments
If installing as a superuser (e.g., to append to the Apple factory-installed Python distribution), use:
sudo -E pip install psycopg2
Additional Considerations:
The above is the detailed content of Why Does `pip install psycopg2` Fail on Mavericks with a `-mno-fused-madd` Clang Error?. For more information, please follow other related articles on the PHP Chinese website!