小编典典

在Windows 7上安装Scrapy-Python和Easy_install

python

我正在尝试在Windows 7上安装Scrapy。我正在按照以下说明进行操作:

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

我已按照本教程https://adesquared.wordpress.com/2013/07/07/setting-up-python-and-
easy_install-on-
windows-7/下载并安装了适用于Windows的python-2.7.5.msi。,并且如上所述设置环境变量,但是当我尝试在命令提示符下运行python时,出现此错误:

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:\>

你能帮我解决这个问题吗?


阅读 165

收藏
2021-01-20

共1个答案

小编典典

ur是python2语法,您正试图安装一个不兼容的软件包,该软件包用于python2而非python3:

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

默认情况下,python3.4还安装了pip

2021-01-20