Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I update Scrapy from the Terminal?

I'm currently running Scrapy v0.18, and I'd like to update to the latest stable version 0.22. My biggest issue at the moment is that I can't figure out why the latest version won't install. I used the command sudo easy_install -U scrapy, but that resulted in the 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'm not very experienced with the command line. How can I update Scrapy to the latest version successfully?

like image 289
elersong Avatar asked Jan 21 '14 13:01

elersong


People also ask

How do I run Scrapy in terminal?

Using the scrapy tool You can start by running the Scrapy tool with no arguments and it will print some usage help and the available commands: Scrapy X.Y - no active project Usage: scrapy <command> [options] [args] Available commands: crawl Run a spider fetch Fetch a URL using the Scrapy downloader [...]

What is the latest version of Scrapy?

1 (2022-11-02)

How do I know if Scrapy is installed?

You can check that Scrapy is installed correctly by running scrapy bench .


1 Answers

Now that the question has been clarified that the initial install was via pip, the best way to upgrade would be:

sudo pip install --upgrade scrapy

like image 195
mmdanziger Avatar answered Oct 05 '22 12:10

mmdanziger