| 1 |
.. _install: |
| 2 |
|
| 3 |
Installation of Requests |
| 4 |
======================== |
| 5 |
|
| 6 |
This part of the documentation covers the installation of Requests. |
| 7 |
The first step to using any software package is getting it properly installed. |
| 8 |
|
| 9 |
|
| 10 |
$ python -m pip install requests |
| 11 |
-------------------------------- |
| 12 |
|
| 13 |
To install Requests, simply run this simple command in your terminal of choice:: |
| 14 |
|
| 15 |
$ python -m pip install requests |
| 16 |
|
| 17 |
Get the Source Code |
| 18 |
------------------- |
| 19 |
|
| 20 |
Requests is actively developed on GitHub, where the code is |
| 21 |
`always available <https://github.com/psf/requests>`_. |
| 22 |
|
| 23 |
You can either clone the public repository:: |
| 24 |
|
| 25 |
$ git clone https://github.com/psf/requests.git |
| 26 |
|
| 27 |
Or, download the `tarball <https://github.com/psf/requests/tarball/main>`_:: |
| 28 |
|
| 29 |
$ curl -OL https://github.com/psf/requests/tarball/main |
| 30 |
# optionally, zipball is also available (for Windows users). |
| 31 |
|
| 32 |
Once you have a copy of the source, you can embed it in your own Python |
| 33 |
package, or install it into your site-packages easily:: |
| 34 |
|
| 35 |
$ cd requests |
| 36 |
$ python -m pip install . |