PIP

2012-03-16 2 views
0

4.11을 사용하여 Twisted를 설치하는 중 오류가 발생했습니다. pip 또는 easy_install을 사용하여 Scrapy를 설치하려고합니다.PIP

두 가지 모두에 대해 계속 실패하고 있습니다. 처음에는 gcc-4.0을 사용할 수 없다는 말을하지 못했습니다. 그런 다음 설치 CD를 사용하여 설치합니다. 이제 다른 오류가 발생했습니다.

실행 내가 처음

gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o 
conftest.c:1:21: error: rpc/rpc.h: No such file or directory 
conftest.c:1:21: error: rpc/rpc.h: No such file or directory 
lipo: can't figure out the architecture type of: /var/tmp//ccXYV9xx.out 
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o 
conftest.c:1:23: error: sys/epoll.h: No such file or directory 
conftest.c:1:23: error: sys/epoll.h: No such file or directory 
lipo: can't figure out the architecture type of: /var/tmp//cctYFimU.out 
building 'twisted.test.raiser' extension 
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c twisted/test/raiser.c -o build/temp.macosx-10.3-fat-2.7/twisted/test/raiser.o 

에 다음과 같은 오류가 나타날, 트위스트에 대한 설치로 끝나는있는 setup.py이 모든과 어떤 도움이 해결에

lipo: can't figure out the architecture type of: /var/tmp//ccYXFDmd.out error: command 'gcc-4.0' failed with exit status 1

나는 새로운 해요 이게 좋을거야!

답변

0

OS X에 오셨습니까?

이 시도 :

sudo env ARCHFLAGS="-arch i386 -arch x86_64" pip install scrapy

관련을 : trying to install lxml on max osx leopard

+0

그것은 여전히 ​​나에게 오류를 제공합니다. Mac 10.4.11이고 오류는 다음과 같습니다. raiser.c -o 빌드/temp.macosx-10.3-intel-2.7/twisted/test/raiser.o gcc-4.0 : 사용할 수 없습니다. 아치 x86_64에 대한 설정 이름을 추측 왜 10.3-intel을 빌드합니까?! – user1274037

+0

필자는 10.4에 대한 전문가는 아니지만 32 비트 배포판을 추측한다 :'sudo env ARCHFLAGS = "- arch i386"pip install scrapy' –

+0

여전히 제대로 설치되지 않는다 ... 같은 오류를 준다. – user1274037