How to update Scrapy from the terminal?

I am currently running Scrapy v0.18 and I want to upgrade to the latest stable version 0.22. My biggest problem at the moment is that I cannot understand why the latest version will not be installed. I used the command sudo easy_install -U scrapy, but this led to an error message as follows:

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

I am not very good at the command line. How can I successfully upgrade Scrapy to the latest version?

+4
source share
1 answer

Now that it’s revealed that the initial installation went through pip, the best way to upgrade is:

sudo pip install --upgrade scrapy

+11

All Articles