I have 1 file, i get as far as line 1 import requests
, nothing more yet and I receive the following error ModuleNotFoundError: No module named 'requests'
.
pip install requests
within terminal inside VSCODE - completed successfullypip freeze
to confirm requests==2.22.0 is registeredI cannot figure out why VSCODE python interpreter will not recognize that requests is installed
Have you checked your user and workspace settings?
Make sure your workspace settings (not your user settings) points to your project's venv
path.
I have encountered a similar problem such as yours but was able to solve it by changing the workspace settings python path to point to my venv
path as below.
{
"python.pythonPath": "${workspaceFolder}/code/venv/bin/python"
}