gpt4 book ai didi

python - 无法使用 pip : error: command 'cc' failed with exit status 1 安装折扣

转载 作者:太空狗 更新时间:2023-10-29 18:18:44 26 4
gpt4 key购买 nike

尝试在 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
  • 更新 pip 数
  • 更新虚拟环境
  • 更新自制软件

有什么办法解决这个问题吗?提前致谢。

最佳答案

尝试:

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

这似乎是 XCode 5.1 中 LLVM 的一个问题,如下所述:Can't install mysql gem on OS X

关于python - 无法使用 pip : error: command 'cc' failed with exit status 1 安装折扣,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19769648/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com