10

discountパッケージを osx 10.9 Mavericksにインストールしようとすると、多くの問題が発生します。私は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 の更新
  • 自作の更新

この問題を解決する方法はありますか? 前もって感謝します。

4

2 に答える 2

21

試す:

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

ここで述べたように、これは XCode 5.1 の LLVM の問題のようです: OS X に mysql gem をインストールできません

于 2014-03-18T04:06:11.433 に答える
0

ターミナルでgccorを入力すると、エラーが出力されますか? ccXcodeがインストールされていますか?

xcode-select....

その場合、Mac Os Mavericks は、Xcode コマンド ライン ツールをインストールするよう警告します。

于 2013-11-04T14:51:47.230 に答える