美文网首页
windows安装与使用scrapy的问题

windows安装与使用scrapy的问题

作者: RosalindJuan | 来源:发表于2018-02-07 18:30 被阅读0次

1.scrapy安装时,如果报错提示:error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

解决方法:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twisted对应版本的whl文件(如我的Twisted‑17.5.0‑cp36‑cp36m‑win_amd64.whl),cp后面是python版本,amd64代表64位

找到相应的下载目录,运行成功后,在进行 pip install Scrapy

2.在运行scrapy时,scrapy crawl quotes

会提示:ModuleNotFoundError: No module named 'win32api'

解决方法:

Python是没有自带访问windows系统API的库的,需要下载。库的名称叫pywin32,可以从网上直接下载。

http://sourceforge.net/projects/pywin32/files/  。

下载适合你的Python版本 :

https://github.com/mhammond/pywin32/releases

相关文章

网友评论

      本文标题:windows安装与使用scrapy的问题

      本文链接:https://www.haomeiwen.com/subject/xcuazxtx.html