requests 安装

requests 是用来发送 HTTP 请求的一个库,requests 是对 urllib 和 urllib2 进行封装的一个模块,用来取代 urllib 和 urllib2,可以使用以下两种方法安装 requests

[root@localhost ~]$ pip3.6 install requests    
[root@localhost ~]$ yum install -y epel-release
[root@localhost ~]$ yum install -y python-requests

    

猜你喜欢

转载自www.cnblogs.com/pzk7788/p/10531147.html