Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't install discount with pip: error: command 'cc' failed with exit status 1

I am running into many problems when trying to install the discount package on osx 10.9 Mavericks. I'm working with the django framework.

My steps are (while having a virtualenv activated):

pip install discount

Then I get:

.
.
.

1 error generated.

error: command 'cc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /Users/KaeserMic/Sites/2013/Duotones/naturkostbar/env/bin/python -c "import setuptools;__file__='/Users/KaeserMic/Sites/2013/Duotones/naturkostbar/env/build/discount/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/4b/smwv2y_s32z044brp6t__ssh0000gp/T/pip-65i7x3-record/install-record.txt --single-version-externally-managed --install-headers /Users/KaeserMic/Sites/2013/Duotones/naturkostbar/env/include/site/python2.7 failed with error code 1 in /Users/KaeserMic/Sites/2013/Duotones/naturkostbar/env/build/discount
Storing complete log in /Users/KaeserMic/.pip/pip.log

Here is the complete log:

https://gist.github.com/MichaelKaeser/7302829

Things I did:

  • updating python
  • updating pip
  • updating virtualenv
  • updating homebrew

Any ideas how to solve this issue? Thanks in advance.

like image 714
MichaelKaeser Avatar asked Nov 04 '13 14:11

MichaelKaeser


1 Answers

Try:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install discount

This seems to be an issue with LLVM in XCode 5.1 as mentioned here: Can't install mysql gem on OS X

like image 164
Parker Avatar answered Oct 26 '22 11:10

Parker