Scrapy模块的正确安装步骤
- 1.Twisted模块 安装过程
步骤1.直接下载twisted(根据自己电脑的系统32/64位来下载)
网址地址:https://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted
2.转到下载目录
C:\Users\sunxiaomin>d:
D:\>cd D:\Soft-manage\pycharm\pachong\new_document
3.pip安装
pip install Twisted-19.2.0-cp37-cp37m-win_amd64.whl
- 2. pywin32模块 安装过程
pip install pywin32
- 3. scrapy模块 安装过程
pip install scrapy
cmd命令窗口通过 直接 pip install scrapy 会报以下错误:
----------------------------------------
Command "d:\soft-manage\python\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\SUNXIA~1\\AppData\\Local\\Temp\\pip-install-pu0hanpe\\Twisted\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\SUNXIA~1\AppData\Local\Temp\pip-record-t0xq4abu\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\SUNXIA~1\AppData\Local\Temp\pip-install-pu0hanpe\Twisted\
错误原因:Twisted模块安装失败导致