CentOS7下安装Scrapy

时间:2022-01-21 06:32:45

更新yum
[root@localhost ~]# yum -y update
1
安装gcc及扩展包
[root@localhost ~]# yum install gcc libffi-devel python-devel openssl-devel
2
安装开发工具包
[root@localhost ~]# yum groupinstall -y development
3
安装libxslt-devel支持lxml
[root@localhost ~]# yum install libxslt-devel
4
安装pip
[root@localhost ~]# yum -y install python-pip
5
安装Scrapy
[root@localhost ~]# pip install scrapy