python - 命令 'llvm-gcc-4.2' 失败,退出状态 1

标签 python gcc osx-lion pip llvm-gcc

我正在通过 pip 安装软件包,但由于以下错误而失败:

Running setup.py install for pylibmc
    running install
    running build
    running build_py
    running build_ext
    building '_pylibmc' extension
    llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -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 i386 -arch x86_64 -pipe -DUSE_ZLIB -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _pylibmcmodule.c -o build/temp.macosx-10.7-intel-2.7/_pylibmcmodule.o -fno-strict-aliasing
    In file included from _pylibmcmodule.c:34:

...

error: command 'llvm-gcc-4.2' failed with exit status 1

其他相关问题( What is the best way to setup Django on os X 10.7 Lion?gcc-4.2 failed with exit status 1Why am I getting the error: command 'llvm-gcc-4.2' failed with exit status 1 )都说我应该安装最新的 Xcode 和命令行工具,所以我这样做了,但问题仍然存在。

还有其他解决办法吗?我不想使用https://github.com/kennethreitz/osx-gcc-installer因为我经常在其他项目中使用 Xcode。

最佳答案

我必须先brew install libmemcached才能安装 pylibmc。

关于python - 命令 'llvm-gcc-4.2' 失败,退出状态 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17817271/

相关文章:

python - 赋值前引用的 Pygame 局部变量

python - 如何使用cv2分割图像?

python - 正则表达式-在Python中第二次出现连字符后删除不需要的子字符串

c - Visual Studio 与 GCC,关于 "' __cdecl' 属性指令被忽略 [-Wattributes]”

ios - 我是否必须升级到 Lion 才能在运行 iOS 5.1 的 iPad 上进行测试?

macos - OSX su 命令问题

python - 打印一个列表,然后横跨

c++ - 如何捕获 x86 上的数据对齐错误(Sparc 上的 SIGBUS)

linux - _start 可以作为缩略图函数吗?

objective-c - NSPersistentDocument 的轻量级迁移