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.

Was it helpful?

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

OTHER TIPS

easy_install Scrapy==0.18.4 worked for me

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top