ImportError: No Module Named Requests

574    Asked by AlGerman in Python , Asked on Nov 18, 2022

On importing requests, I am getting an error saying No module Named requests.

import requests
The error I get:
File "ex2.py", line 1, in 
import requests
ImportError: No module named requests
Regarding the no module named 'requests' -

To install requests module on Debian/Ubuntu for Python2:
$ sudo apt-get install python-requests
And for Python3 the command is:
$ sudo apt-get install python3-requests

Your Answer

Interviews

Parent Categories