close

[Fixed] ImportError: No module named requests

Today We are Going To Solve ImportError: No module named requests in Python. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix ImportError: No module named requests Error?

  1. How to Fix ImportError: No module named requests Error?

    To Fix ImportError: No module named requests Error just Install requests module. you can easily install requests module on Debian/Ubuntu by using some commands. Here i am giving you this. If you are using python 2 then just use it.$ sudo apt-get install python-requests And for Python3 use the below one. It will help you.
    $ sudo apt-get install python3-requests

  2. ImportError: No module named requests

    To Fix ImportError: No module named requests Error just Use the command. Just use the below command to solve your error. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python get-pip.py pip install requests

Solution 1 : Install requests module

you can easily install requests module on Debian/Ubuntu by using some commands. Here i am giving you this.

If you are using python 2 then just use it.

$ sudo apt-get install python-requests

And for Python3 use the below one. It will help you.

$ sudo apt-get install python3-requests

Solution 2 : Use the command

Just use the below command to solve your error.

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip install requests

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read These Solutions

Leave a Comment