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:
Any ideas how to solve this issue? Thanks in advance.
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
If you enter gcc
or cc
in the terminal, will it output an error? Do you have Xcode installed?
xcode-select....
If so, Mac Os Mavericks should alert you to install Xcode Command Line Tools.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.