سؤال

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.

هل كانت مفيدة؟

المحلول

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

pip install scrapy==0.18.4

نصائح أخرى

easy_install Scrapy==0.18.4 worked for me

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top