Simplejson在mac os x 10.9 Mavericks上

时间:2013-11-05 20:59:52

标签: python json python-2.7 pip osx-mavericks

我花了一天时间才安装simplejson包。总是我没有成功!

当我输入:

pip install simplejson

它让我犯了错误:

Installing collected packages: simplejson
Running setup.py install for simplejson
building 'simplejson._speedups' extension
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c simplejson/_speedups.c -o build/temp.macosx-10.9-intel-2.7/simplejson/_speedups.o
clang: warning: argument unused during compilation: '-mno-fused-madd'

是否有人遇到过这样的错误,或者可以告诉我如何安装它?

1 个答案:

答案 0 :(得分:2)

所以我们设法解决了聊天问题。这是与升级到OS X mavericks相关的问题,本文非常有用http://attentionshard.wordpress.com/2013/10/25/os-x-mavericks-fixing-broken-python-development-environments/