Alternative Methods
THe last method for installation of requests on any operating system is to grab the base files and install requests manually and Requests is actively developed on GitHub, where the code is always available. For code –
visit here
. You can either clone the public repository:
git clone git://github.com/psf/requests.git
Or, download the tarball:
curl -OL https://github.com/psf/requests/tarball/master
# 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
pip install .
How to Install Requests in Python – For Windows, Linux, Mac
Requests is an elegant and simple HTTP library for Python, built for human beings. One of the most famous libraries for Python is used by developers al over the world. This article revolves around how one can install requests library of Python in Windows/ Linux/ macOS using pip.