error: command ‘cc’ failed with exit status 1; Can’t install PIL, Pillow, MySql and other packages in Mavericks.

If you are getting the following error when installing python packages using PIP or easy_install, don’t worry. You have come to the right place for solution.

First make sure you have developer tools installed. You can install them by executing the following command in terminal

xcode-select --install

The clang errors are due to changes introduced in Xcode 5.1 and due to the way the Apple-supplied system Python 2.7 is built. You can tell them to shut up by adding these environment variables in terminal.

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

Error while installing PIL, Pillow, MySql on OSX Mavericks using 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 future
error: command 'cc' failed with exit status 1**

One Reply to “error: command ‘cc’ failed with exit status 1; Can’t install PIL, Pillow, MySql and other packages in Mavericks.”

  1. Hi,
    I have similar problem to install a library (DIRECT) in MAC, but the solution above does not work and I have tried lots of things. Here is my error:

    error: Command “gcc -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -Ibuild/src.macosx-10.5-x86_64-2.7 -I/Users/ali/anaconda/lib/python2.7/site-packages/numpy/core/include -I/Users/ali/anaconda/include/python2.7 -c build/src.macosx-10.5-x86_64-2.7/fortranobject.c -o build/temp.macosx-10.5-x86_64-2.7/build/src.macosx-10.5-x86_64-2.7/fortranobject.o” failed with exit status 1

    Can you give some help?
    Best

Leave a Reply

Your email address will not be published. Required fields are marked *