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?
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 [...]
1 (2022-11-02)
You can check that Scrapy is installed correctly by running scrapy bench .
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With