基于scrapy
框架版本升级, 使得安装变得便捷, 不需要再像以前那样去特定网站下载对应的.whl
包了
以下为最新安装方法实践:
# 依次安装下列包, 如果有了不用重新安装, 不知道有没有也没关系, 自动默认安装校验
pip install lxml
pip install parsel
pip install w3lib
pip install twisted
pip install cryptography
pip install pyOpenSSL
上述包安装完成后安装scrapy
:
pip install Scrapy
安装完成后校验是否安装成功:
cmd窗口运行scrapy shell
成功如下:
![](https://img.haomeiwen.com/i10131474/70532710fad07ba5.png)
参考官方文档: https://docs.scrapy.org/en/latest/intro/install.html#installing-from-source
网友评论