Q: Django: ModuleNotFoundError: No module named 'requests' when i run server i have below error:
ModuleNotFoundError: No module named 'requests'

but requests have been installed on my system, when i run sudo pip3 install requests command, output is : 
Requirement already satisfied: requests in /home/sadegh-khan/.local/lib/python3.6/site-packages

the terminal pic of my error and command to install requests is:


A: You're installing requests by running pip as sudo, which means it is installed globally. Yet your screenshot (and please don't post screenshots anyway) shows you are inside a virtualenv, .venv.
Don't use sudo; just install requests inside the venv.

A: If you are using Python3 instead of running the server using python manage.py runserver go ahead and run python3 manage.py runserver
Instead of
python manage.py runserver

or
py  manage.py runserver

Run
python3  manage.py runserver
