ImportError: No module named requests

This error message indicates that the "requests" module, which is used for making HTTP requests in Python, is not installed on your system or is not in the Python path. To install the requests module, you can use the pip package manager by running the following command in your command prompt or terminal:

pip install requests

If you are using Python 3, you may need to use pip3 instead:

pip3 install requests

Watch a course Python - The Practical Guide

After installing the requests module, you should be able to import it in your Python script without any issues.

import requests

response = requests.get('https://api.github.com')
print(response.status_code)

Please make sure you are running the command prompt or terminal as administrator and internet connection is also available.