Question

I am using CentOS and my default Python version is 2.6. I installed Scrapy using pip install Scrapy and I executed the code below

from scrapy.selector import Selector

And I got this message: Scrapy 0.20.2 requires Python 2.7. I can't just upgrade my current version of Python because I have lots of programs that depends on it. If possible, I would like to install the correct version of Scrapy on my Python 2.6.

Était-ce utile?

La solution

Support for Python 2.6 was dropped in version 0.20.0, so just install 0.18.4:

pip install scrapy==0.18.4

Autres conseils

easy_install Scrapy==0.18.4 worked for me

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top