Error Encountered During psycopg2 Installation
Attempting to install psycopg2 using pip on Mavericks 10.9 results in the following error:
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
Addressing the Error
To resolve this error, suppress the 'mno-fused-madd' warning by setting the environment variables before compiling:
export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments
Subsequently, running the installation command should proceed successfully.
Additional Considerations
The above is the detailed content of How to Fix the `-mno-fused-madd` Error During psycopg2 Installation on macOS?. For more information, please follow other related articles on the PHP Chinese website!