ModuleNotFoundError: No module named 'requests'

29,502

Solution 1

Find were your python is installed and find Scripts directory. Open cmd, go to this folder and type pip install requests.

For me it was like below:

cd C:\Users\myLocalUserName\AppData\Local\Programs\Python\Python36\Scripts
pip install requests

Solution 2

For listing instaled modules for Python 3:

sudo pip3 list

For installing the request module for Python 3:

sudo pip3 install requests
Share:
29,502
Jaskunwar singh
Author by

Jaskunwar singh

Updated on August 09, 2021

Comments

  • Jaskunwar singh
    Jaskunwar singh over 2 years

    I have installed the pip3 as well as requests package in my pc.Even then on running the command import requests on my shell,i am getting the following error:

    Traceback (most recent call last):
    File "<pyshell#0>", line 1, in <module>
    import requests
    ModuleNotFoundError: No module named 'requests'
    

    I have to manually copy all the packages to my working directory to tackle this exception.