clang error: unknown argument: ‘-mno-fused-madd’ (python package installation failure)

You can tell clang to not raise this as an error by setting the following environment variables prior compilation: export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments Then pip install psycopg2should work. I had the same when trying to pip install lxml. Edit: if you are installing as superuser (which will likely be the case if you are trying … Read more