【发布时间】:2013-07-23 17:41:11
【问题描述】:
我正在通过 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 1 和 Why am I getting the error: command 'llvm-gcc-4.2' failed with exit status 1)都说我应该安装最新的 Xcode 和命令行工具,所以我这样做了,但问题仍然存在。
还有其他解决方案吗?我不想使用https://github.com/kennethreitz/osx-gcc-installer,因为我经常将 Xcode 用于其他项目。
【问题讨论】:
-
你能提供更多的上下文吗?您要安装哪个软件包,还有输出吗?也许
pip的--verbose选项可以提供帮助?另外,验证您确实可以在命令行上运行llvm-gcc-4.2(即使没有输入文件)。 -
添加了更多上下文。它仅适用于 pylibmc 包,是的,我可以运行
llvm-gcc-4.2
标签: python gcc osx-lion pip llvm-gcc