Error when installing from requirements.txt of web project with pip
Question: This is the error message I received

    
    
    Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xGZuOG-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/Pillow
    

The full terminal output from sudo pip install -r requirements.txt is
<http://pastebin.com/CAvW67f2>

The content of requirements:

    
    
    Django==1.6.1
    EasyProcess==0.1.6
    Pillow==2.3.0
    South==0.8.4
    Whoosh==2.6.0
    bottle==0.11.6
    dj-database-url==0.2.2
    dj-static==0.0.5
    django-bootstrap3==2.6.1
    django-toolbelt==0.0.1
    gunicorn==18.0
    httplib2==0.8
    pyscreenshot==0.3.2
    pystache==0.5.3
    python-instagram==0.8.0
    simplejson==3.3.2
    static==1.0.2
    wsgiref==0.1.2
    yolk==0.4.3
    

I'm completely lost - thanks for any help on this


Answer: Try running this in your bash before installing:

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

[Source](http://stackoverflow.com/questions/22697440/cc-failed-with-exit-
status-1-error-when-install-python-library)

