PlainError

ModuleNotFoundError: No module named requests

Last checked 2026-11-09 · 2 fixes · reviewed answer

TL;DRA Python script tried to load the 'requests' library (used for making web requests) but could not find it installed in the current Python environment.

Most likely cause: The requests package is simply not installed for the Python version or environment the script is using.

Try first: Check installed packages (pip list)

Likely causes

  1. The requests package is simply not installed for the Python version or environment the script is using.most likely
  2. The script is running in a different Python environment (such as a virtual environment) that does not have requests installed.possible
  3. A typo in the import statement or an incomplete project setup.less likely

How to fix it

Safest first: SafeChanges settingsDangerous
  1. Check installed packagesSafe

    Run this command to see if requests is already listed.

    pip list
  2. Install the missing packageChanges settings

    Use pip to download and install the requests library.

    pip install requests

If that didn't fix it

Run 'python -m pip install requests' or check your script's shebang/virtual environment settings.

When to see a technician

Consult a developer if the error occurs inside a larger project with complex dependencies or Docker containers.

Quick answers

What does ModuleNotFoundError: No module named requests mean?
A Python script tried to load the 'requests' library (used for making web requests) but could not find it installed in the current Python environment.
What causes ModuleNotFoundError: No module named requests?
The requests package is simply not installed for the Python version or environment the script is using. (most likely) The script is running in a different Python environment (such as a virtual environment) that does not have requests installed. (possible) A typo in the import statement or an incomplete project setup. (less likely)
How do I fix ModuleNotFoundError: No module named requests?
Try these in order, safest first: 1. Check installed packages. 2. Install the missing package.
What if that didn't fix it?
Run 'python -m pip install requests' or check your script's shebang/virtual environment settings.
When should I see a technician?
Consult a developer if the error occurs inside a larger project with complex dependencies or Docker containers.
Did this fix it? Report a problem

Related errors

All Coding errors →