Overview
This guide shows how to install requests. requests is an HTTP library that can be used to make REST call to API and other various uses. It supports specifying Form Parameter, HTTP Header, content types and HTTP methods.
Prerequisites
- Python has been installed
- Optional but recommended. Setup a VirtualEnvironment and Pip has been installed.
Installation
01. Activate your virtual environment, or skip this step if not using virtual environment.
$ source {{virtual-env-directory}}/bin/activate
02. Install the requests package
(geek-venv) $ pip install requests
03. Verify that requests has been installed by viewing the version.
(geek-venv) $ pip freeze | grep requests