error: command 'gcc-4.2' failed with exit status 1
我试图通过pip在OS X上安装pycrypto(2.3版)。我得到 "Broken pipe" 错误,在使用easy_install时,我得到了一个非常类似的错误。下面是我得到的错误bash-3.2$
bash-3.2$ sudo pip install pycrypto
Password:
Downloading/unpacking pycrypto
Running setup.py egg_info for package pycrypto
Installing collected packages: pycrypto
Running setup.py install for pycrypto
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash.MD2' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/MD2.c -o build/temp.macosx-10.6-universal-2.6/src/MD2.o
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
如果您已经安装了Xcode 4,请在调用pip或easy_install之前尝试设置ARCHFLAGS:sudo bashexport ARCHFLAGS='-arch i386 -arch x86_64' Xcode 5.1ARCHFLAGS=-Wno-error=unuse -command-line- argumof- hard-error-in-future pip2.7 install pycrypto 没怎么遇到过这种
页:
[1]