Request是python中一个发送http请求的包,
pip安装:
pip install Requests (==版本号)
如果你没有安装pip那么需要先安装pip,pip是python中基本的工具。
你也可以使用源码进行安装,Requests 一直在 Github 上积极地开发,你可以一直从这里获取到代码。
你可以克隆公共版本库:
git clone git://github.com/kennethreitz/requests.git
也可以下载 tarball:
$ curl -OL https://github.com/requests/requests/tarball/master
# Windows 用户也可选择 zip 包
获得代码之后,你就可以轻松的将它嵌入到你的 python 包里,或者安装到你的 site-packages:
$ cd requests
$ pip install .
原文:https://www.cnblogs.com/xiaoshandeboke/p/11718719.html