Python & Scrapy: Issue with Scrapy version

后端 未结 1 906
借酒劲吻你
借酒劲吻你 2020-12-18 05:37

I\'m using Ubuntu 14.04 x64, I\'ve followed the Scrapy docs to install the package using pip:

pip install s         


        
相关标签:
1条回答
  • 2020-12-18 06:30

    I had a similar issue back then and It was because the Ubuntu package was messing with the pip package.

    When I installed Scrapy using pip and try to run it, scrapy says that the package was missing some dependencies and then I installed Scrapy using apt-get and there is where I screwed up with the package version.

    I recommend you to remove both packages from Ubuntu and Pip and then reinstall only using pip:

    apt-get remove --purge python-scrapy
    pip uninstall scrapy
    

    After those actions finished you can install it again using pip and then if you do scrapy version you should get as response the newest version, in your case it should be 0.24.4.

    EDIT

    You can read this in Scrapy Documentation:

    python-scrapy is a different package provided by official debian repositories, it’s very outdated and it isn’t supported by Scrapy team.

    To install Scrapy in Ubuntu they say:

    1. Import the GPG key used to sign Scrapy packages into APT keyring:

      sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7

    2. Create /etc/apt/sources.list.d/scrapy.list file using the following command:

      echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list

    3.Update package lists and install the scrapy-0.24 package:

    sudo apt-get update && sudo apt-get install scrapy-0.24

    Check Here: Scrapy on Ubuntu

    0 讨论(0)
提交回复
热议问题