Search code examples
pythonwindowsinstallationscrapyeasy-install

Installing Scrapy-Python and Easy_install on windows 7


I'm trying to install Scrapy on windows 7. I'm following these instructions:

http://doc.scrapy.org/en/0.24/intro/install.html#intro-install

I’ve downloaded and installed python-2.7.5.msi for windows following this tutorial https://adesquared.wordpress.com/2013/07/07/setting-up-python-and-easy_install-on-windows-7/, and I set up the environment variables as mentioned, but when I try to run python in my command prompt I get this error:

Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\>python
‘python’ is not recognized as an internal or external command,
operable program or batch file.

C:\> python ez_setup.py install
‘python’ is not recognized as an internal or external command,
operable program or batch file.

C:\>

Could you please help me solve this?


Solution

  • ur is python2 syntax you are trying to install an incompatible package meant for python2 not python3:

    _ajax_crawlable_re = re.compile(ur'<meta\s+name=["\']fragment["\']\s+content=["\']!["\']/?>')
                                     ^^ python2 syntax
    

    Also pip is installed by default for python3.4