python爬虫基础(1)-scrapy模块安装记录

准备工作:
Windows操作系统通过 python 命令运行 pip 模块来安装 Scrapy。
python -m pip install scrapy 安装scrapy模块

C:\Users\86182>python -m pip install scrapy

没安装成功,根据教程开始安装
链接: https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted.
中的Twisted‑19.7.0‑cp37‑cp37m‑win_amd64.whl文件

根据提示手动下载了
Twisted-19.7.0-cp37-cp37m-win_amd64.whl
lxml-4.4.1-cp37-cp37m-win_amd64.whl
cryptography-2.8-cp37-cp37m-win_amd64.whl

进行安装scrapy模块

C:\Users\86182>python -m pip install scrapy

进行测试

C:\Users\86182\Downloads>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import scrapy
>>>
>```

测试成功

猜你喜欢

转载自blog.csdn.net/u011727262/article/details/102689845