i solved following [this][1] guide and executing again:
sudo easy_install scrapy
now it works!
Frage
first of all i'm working on osx 10.6.8
i installed scrapy using the command:
sudo easy_install Scrapy
and everything seemed working fine. but when i try to create a new project using
scrapy startproject tutorial
i only get
Scrapy 0.22.2 requires Python 2.7
i tried this solution, but i get the same problem. how could i fix this?
EDIT: i think i have understood the problem: easy-install
referrs to an older version of python (2.6) that it is in my system under /Library/Python/2.6
(probably it was pre-installed), so i installed scrapy for python 2.6! that's why i get the error. but now i don't know how to install scrapy for the right version of python!
Lösung 3
i solved following [this][1] guide and executing again:
sudo easy_install scrapy
now it works!
Andere Tipps
Execute
which python
and
python --version
my guess is scrapy is not linking to python2.7 by default.
Please, open /Library/Frameworks/Python.framework/Versions/2.7/site-packages/scrapy/__init__.py
and insert at line 14:
13 if sys.version_info < (2, 7):
14 print(sys.version_info)
15 print("Scrapy %s requires Python 2.7" % __version__)
16 sys.exit(1)
then scrapy startproject tutorial
and show us the output