我目前正在运行Scrapy v0.18,我想更新到最新的稳定版本0.22。我目前最大的问题是我无法弄清楚为什么最新版本无法安装。我使用了命令sudo easy_install -U scrapy
,但是这导致了如下错误消息:
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
conftest.c:1: fatal error: error closing -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/tmp//ccgmNJrm.out (No such file or directory)
/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
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
twisted/test/raiser.c:1440: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/tmp//ccriYrDV.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
我对命令行不太熟悉。如何成功将Scrapy更新到最新版本?
答案 0 :(得分:14)
现在问题已经澄清,初始安装是通过pip
,升级的最佳方式是:
sudo pip install --upgrade scrapy