xxxxxxxxxx
/* !! ONLY FOR VSCODE !! *\
if you have the module requests and it's still not working it might be because
you're in a workspace. if you are in a workspace then follow these steps:
1. open terminal (ctrl+shift+`)
2. select the folder you are working in
once you have done that it should work for some reason. just happened to me lol
if you aren't in workspace then you probably don't have it installed, to
install the module follow these steps:
1. open terminal (ctrl+shift+`)
2. type "pip install requests" (or whatever module is missing)
3. press enter and wait for it to install
4. once it's installed just restart VSCode :)
xxxxxxxxxx
import "requests" could not be resolved from source Pylance
Have you made sure that you have installed the module by running
pip install requests
xxxxxxxxxx
/* !! ONLY FOR VSCODE !! *\
if you have the module requests and it's still not working it might be because
you're in a workspace. if you are in a workspace then follow these steps:
1. open terminal (ctrl+shift+`)
2. select the folder you are working in
once you have done that it should work for some reason. just happened to me lol
if you aren't in workspace then you probably don't have it installed, to
install the module follow these steps:
1. open terminal (ctrl+shift+`)
2. type "pip install requests" (or whatever module is missing)
3. press enter and wait for it to install
4. once it's installed just restart VSCode :)