File: install.rst

package info (click to toggle)
requests 2.28.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 960 kB
  • sloc: python: 6,829; makefile: 320; sh: 110
file content (36 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.. _install:

Installation of Requests
========================

This part of the documentation covers the installation of Requests.
The first step to using any software package is getting it properly installed.


$ python -m pip install requests
--------------------------------

To install Requests, simply run this simple command in your terminal of choice::

    $ python -m pip install requests

Get the Source Code
-------------------

Requests is actively developed on GitHub, where the code is
`always available <https://github.com/psf/requests>`_.

You can either clone the public repository::

    $ git clone git://github.com/psf/requests.git

Or, download the `tarball <https://github.com/psf/requests/tarball/main>`_::

    $ curl -OL https://github.com/psf/requests/tarball/main
    # optionally, zipball is also available (for Windows users).

Once you have a copy of the source, you can embed it in your own Python
package, or install it into your site-packages easily::

    $ cd requests
    $ python -m pip install .