Scrapy(官网http://scrapy.org/)是Python开发网络爬虫,一个极好的开源工具。本次安装Scrapy确实不易啊。竟然花了2天多时间,须要的支持包比较多,这些支持包相互之间的依赖关系。php
Win7专业版(X64) 注:本人从事.net平台开发,机器上有安装Vs2010。html
Python 2.7.5python
注意:win7 64位必须使用ez_setup.py进行安装。方法是下载ez_setup.py后,在cmd下执行 python ez_setup.py,便可自动安装setuptools。目前没有直接的exe安装版本。
Install pip from https://pip.pypa.io/en/latest/installing.htmlweb
Now open a Command prompt to check pip is installed correctly:windows
pip --version
At this point Python 2.7 and pip package manager must be working, let’s install Scrapy:网络
pip install Scrapy
打开“<python安装目录>\Lib\distutils\msvc9compiler.py”scrapy
找到 toolskey = “VS%0.f0COMNTOOLS” % version,直接修改成 toolskey = ”VS100COMNTOOLS” 工具