[英]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. 尝试在osx 10.9 Mavericks上安装discount
包时,我遇到了很多问题。 I'm working with the django framework. 我正在使用django框架。
My steps are (while having a virtualenv activated): 我的步骤是(在启用virtualenv时):
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 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 这似乎是在XCode 5.1中的LLVM问题,如下所述: 无法在OS X上安装mysql gem
If you enter gcc
or cc
in the terminal, will it output an error? 如果在终端输入gcc
或cc
,它会输出错误吗? Do you have Xcode installed? 你有Xcode安装吗?
xcode-select....
If so, Mac Os Mavericks should alert you to install Xcode Command Line Tools. 如果是这样,Mac Os Mavericks会提醒您安装Xcode Command Line Tools。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.