安装 Requests
2018年2月20日pip install requests
要安装 Requests,只要在你的终端中运行这个简单命令即可:
-
1$ pip install requests
如果你没有安装 pip (呵呵百度吧)。
获得源码
Requests 一直在 Github 上积极地开发,你可以一直从这里获取到代码。
你可以克隆公共版本库:
1 |
git clone git://github.com/kennethreitz/requests.git |
也可以下载 tarball:
1 2 |
$ curl -OL https://github.com/requests/requests/tarball/master # Windows 用户也可选择 zip 包 |
获得代码之后,你就可以轻松的将它嵌入到你的 python 包里,或者安装到你的 site-packages:
1 2 |
$ cd requests $ pip install . |