I ran the code import requests
in my file and this error come out ModuleNotFoundError: No module named 'requests'
Things I have tried:
- installed requests in both windows terminal and vscode terminal
that gives the output
Requirement already satisfied
- ran
pip freeze
requests==2.25.1 is registered - tried
./pip freeze
on the terminal to check if i'm on the wrong terminal as https://stackoverflow.com/a/58160615/15232456 suggests and error: The term './pip' is not recognized - Tried adding the workspace settings path in vscode
{
"python.pythonPath": "${c:/dev/ala/venv/Scripts/python.exe}/code/venv/bin/python"
}
Perhaps something wrong in this implementation?
Edit: "python.pythonPath" has been replaced by "defaultInterpreterPath"?
so I tried this instead:
{
"defaultInterpreterPath": "${c:/python36/python.exe}/code/venv/bin/python"
}
Need help, thanks.