1. 安装Python(本文以Python2.7为例)
安装完了记得配置环境,将python目录和python目录下的Scripts目录添加到系统环境变量的Path里。在cmd中输入python如果出现版本信息说明配置完毕
2.安装lxml
lxml是一种使用 Python 编写的库,可以迅速、灵活地处理 XML。网址https://pypi.python.org/pypi/lxml/3.3.1选择对应的Python版本安装。
https://pypi.python.org/pypi/lxml/3.3.1
提示:是你的Python的版本位数,而非计算机位数
3.安装zope.interface (cmd里安装)
py -2 -m pip install zope.interface
4.安装Twisted (cmd里安装)
py -2 -m pip install Twisted
5.安装pyOpenSSL
py -2 -m pip install pyOpenSSL
6.安装win32py
下载地址:https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/
7. 安装scrapy
py -2 -m pip install scrapy