First of all, you have to install the requests library. This can be done using pip by typing the following command:
pip install requests