繁体   English   中英

无法使用pip安装折扣:错误:命令'cc'失败,退出状态为1

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

尝试在osx 10.9 Mavericks上安装discount包时,我遇到了很多问题。 我正在使用django框架。

我的步骤是(在启用virtualenv时):

pip install discount

然后我得到:

.
.
.

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

这是完整的日志:

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

我做的事情:

  • 更新python
  • 更新点子
  • 更新virtualenv
  • 更新自制软件

任何想法如何解决这个问题? 提前致谢。

尝试:

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

这似乎是在XCode 5.1中的LLVM问题,如下所述: 无法在OS X上安装mysql gem

如果在终端输入gcccc ,它会输出错误吗? 你有Xcode安装吗?

xcode-select....

如果是这样,Mac Os Mavericks会提醒您安装Xcode Command Line Tools。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM