一:Windows下
- 到 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 下载以下几个包
1). lxml-4.2.1-cp35-cp35m-win_amd64.whl
2). Twisted-18.4.0-cp35-cp35m-win_amd64.whl
3). Scrapy-1.5.0-py2.py3-none-any.whl
- command控制台下,CD 到文件目录,安装:
pip3 install lxml-4.2.1-cp35-cp35m-win_amd64.whl,Twisted-18.4.0-cp35-cp35m-win_amd64.whl, Scrapy-1.5.0-py2.py3-none-any.whl
- 直接 pip 安装scrapy:
pip3 install scrapy
二:Linux下
- 直接安装以下安装依赖包:
apt-get install build-essential python3-dev libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev
- 安装 scrapy
pip3 install scrapy
网友评论