简体   繁体   English

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

[英]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: 我做的事情:

  • updating python 更新python
  • updating pip 更新点子
  • updating virtualenv 更新virtualenv
  • updating homebrew 更新自制软件

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? 如果在终端输入gcccc ,它会输出错误吗? 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.

相关问题 错误:命令“cc”在 Mac 上失败,退出状态为 1,用于 pip install MySQL-python - error: command 'cc' failed with exit status 1 on Mac for pip install MySQL-python 无法安装 Orange:“错误:命令 'clang' 失败,退出状态为 1” - Can't install Orange: “error: command 'clang' failed with exit status 1” “Pip install”导致“错误:命令‘gcc’失败,退出状态为 1” - “Pip install” causing “error: command 'gcc' failed with exit status 1” pip install pyhs2错误:命令“ gcc”失败,退出状态为1 - pip install pyhs2 error: command 'gcc' failed with exit status 1 GDAL错误:命令'cc'失败,退出状态为1 - GDAL error: command 'cc' failed with exit status 1 通过 pip 错误(macos)安装瓶颈错误:瓶颈的构建轮失败; 错误:命令“gcc”失败,退出状态为 1 - install bottleneck by pip error (macos) ERROR: Failed building wheel for bottleneck; error: command 'gcc' failed with exit status 1 安装python库时,“'cc'以退出状态1失败”错误 - “'cc' failed with exit status 1” error when install python library 错误:命令'cc'失败,退出状态1 - MAC上的MySQLdb安装 - error: command 'cc' failed with exit status 1 - MySQLdb installation on MAC 在 Mac 上安装 pyfastext 时出错:命令“cc”失败,退出状态为 1 - Got error on installing pyfastext on Mac: command 'cc' failed with exit status 1 无法安装rpi_ws281x“错误:命令'gcc'失败,退出状态为1” - Can't install rpi_ws281x “error: command 'gcc' failed with exit status 1”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM