4.11我正在尝试使用pip或easy_install安装Scrapy。
它一直都失败了,首先它失败了说我没有gcc-4.0可用,然后我用我的安装cd来安装它。现在它突然出现其他错误。
为Twisted运行setup.py install,我在开头
收到以下错误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:无法弄清楚架构类型:/var/tmp//ccYXFDmd.out 错误:命令'gcc-4.0'以退出状态1
失败
我对这一切都很陌生,解决这个问题的任何帮助都会很棒!
答案 0 :(得分:0)
你是OS X吗?
试试这个:
sudo env ARCHFLAGS="-arch i386 -arch x86_64" pip install scrapy