2012-03-16 139 views
0

4.11並且我正嘗試使用pip或easy_install安裝Scrapy。使用PIP安裝Twisted時出錯

它保持兩個失敗,首先它失敗說我沒有gcc-4.0可用,然後我用我的安裝光盤安裝它。現在它彈出與其他錯誤(S)。

運行的setup.py安裝扭曲,我收到開頭

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 

下列錯誤和結尾:

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 build/temp.macosx-10.3-intel-2.7/twisted/test/raiser.o gcc-4.0:無法猜測配置名爲arch x86_64 它爲什麼構建10.3-intel ?! – user1274037 2012-03-16 13:33:20

+0

我不是10.4的專家,但猜測它的32位發行版嘗試:'sudo env ARCHFLAGS =「 - arch i386」pip install scrapy' – 2012-03-16 13:35:15

+0

它仍然沒有正確安裝......給我同樣的錯誤 – user1274037 2012-03-16 13:42:48