Error installing python library with pip on OSX: “’cc’ failed with exit status 1” error

Make sure you have installe XCode and it is updated.

Then Include the following enviroment variables  suing the command line tool:

 export CFLAGS=-Qunused-arguments

export CPPFLAGS=-Qunused-arguments

Then try to install/ compile again.