No module named 'requests'

Hello! I am new to Python.
I use VScode to program. I want to import some libraries like requests, however it shows the error message:
“import requests
ImportError: No module named requests”

I already done the pip3 install request, and still can not find out the problem

Requests is not a built in module (does not come with the default python installation), so you will have to install requests module:


Use pip install requests (or pip3 install requests for python3) if you have pip installed and Pip.exe added to the Path Environment Variable. If pip is installed but not in your path you can use python -m pip install requests (or python3 -m pip install requests for python3)

Alternatively from a cmd prompt, use > Path\easy_install.exe requests, where Path is your Python*\Scripts folder, if it was installed. (For example: C:\Python32\Scripts)

If you manually want to add a library to a windows machine, you can download the compressed library, uncompress it, and then place it into the Lib\site-packages folder of your python path. (For example: C:\Python27\Lib\site-packages)


For Debian/Ubuntu Python2: sudo apt-get install python-requests

For Debian/Ubuntu Python3: sudo apt-get install python3-requests