ModuleNotFoundError: No module named 'requests'
Solution for Python error: ImportRequestsError: No module named 'requests'
Case 1 "requests" package not installed
To check if this is your case, just switch to your terminal and install the requests package with pip:
pip install requests
Case 2 "requests" package already installed
You may meet this error even if you have installed the requests package in your environment. In this case, a possibility is that you are importing an non existing package, here is an example:
I create different virtual environments for different projects, in a new project, due to habit——I tried to import pandas (but I haven't installed it yet), then I got the same error, don't know why.
Therefore, in this case, the solution is to check what you are importing, if they are really installed? If not, install them first.