Resolved – ImportError: No module named requests. You are getting this error because you have not installed the request module. /usr/bin/python: No module named pip on MacOS.
[Solved] – “ImportError: No module named requests”
Troubleshooting the no module named requests error Using pip, Using MiniConda, No module named requests – even after i pip install and Warning / Errors when trying to pip install requests.
If it’s Python 3, a solution would be
sudo pip3 install requests
Using Debian/Ubuntu for Python2:
$ sudo apt-get install python-requests
Python3 the command is:
$ sudo apt-get install python3-requests
For Ubuntu Python2
sudo apt-get install python-requests
For Windows Python3
python3 -m pip install requests
For Ubuntu Python3
sudo apt-get install python3-requests
For Windows Python2
python -m pip install requests
Using Python 3.7
py -m pip install requests
I hope you get an idea about ImportError: No module named requests.