![](/img/trans.png)
[英]error: command 'cc' failed with exit status 1 on Mac for pip install MySQL-python
[英]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
我做的事情:
任何想法如何解決這個問題? 提前致謝。
嘗試:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install discount
這似乎是在XCode 5.1中的LLVM問題,如下所述: 無法在OS X上安裝mysql gem
如果在終端輸入gcc
或cc
,它會輸出錯誤嗎? 你有Xcode安裝嗎?
xcode-select....
如果是這樣,Mac Os Mavericks會提醒您安裝Xcode Command Line Tools。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.