Windows环境下安装Scrapy
2017-12-12 本文已影响0人
何苦_python_java
第一步去百度下载安装
visualcppbuildtools_full.exe 这个

第二步的在DOS命令中输入 pip install scraoy 静等
查看 输入 python回车进入编译环境,
再次输入 import scrapy

>>> 没有提示就是好消息
第三步
百度下载 https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/

根据自己的机器下载32位或64位
pywin32 安装完成后,接下来!
以次输入一下命令
pip install win32api
pip install pywin32
都会提示错误,如下:
Could not find a version that satisfies the requirement win32api (from versions: )
No matching distribution found for win32api
改为
pip install pypiwin32
成功解决。
测试 Scrapy是否能启动shell命令
输入 scrapy shell 网站,(百度 是用于演实)
scrapy shell https://www...你想要提取的网站

有部分小伙伴不懂英文不知道如何下载,方便大家就是方便自己!
给大家提供我个人收藏工具 链接:https://pan.baidu.com/s/16KbVVD3UvzjX1HYbGIg_ZQ 密码:r1f4