http://blog.csdn.net/cs123951/article/details/52618873
win10 64位python3.4
使用pip install scrapy安装scrapy的时候出现错误
error: Microsoft Visual C++ 10.0 is required. Get it with "Microsoft Windows SDK 7.1": www.microsoft.com/download/details.aspx?id=8279
下载了SDK7.1也没用
因此从http://www.lfd.uci.edu/~gohlke/pythonlibs/下载scrapy的两个依赖库lxml和twisted
分别安装:
pip install Twisted-16.4.1-cp34-cp34m-win_amd64.whl
pip install lxml-3.6.4-cp34-cp34m-win_amd64.whl
最后安装scrapy:
pip install scrapy
成功!
第一次运行scrapy项目,参照
英文版:http://doc.scrapy.org/en/latest/intro/tutorial.html#creating-a-project
中文版:http://scrapy-chs.readthedocs.io/zh_CN/latest/intro/tutorial.html
由于python3会发生错误——ImportError: No module named ‘win32api‘
到https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/下载pywin
时间: 2024-10-10 16:12:56