Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import "urllib3" could not be resolved from sourcePylancereportMissingModuleSource

I am new to Python and writing a lambda function. I installed urllib3 using pip but still getting this following error.

enter image description here

I tried restarting vscode/ uninstall and reinstall but still getting the error.

this is the result when I run pip show urllib3

enter image description here

what am i missing here?

like image 794
wonderfulworldwithcharity Avatar asked Jun 25 '26 09:06

wonderfulworldwithcharity


1 Answers

Maybe there is more than one python environment on your machine, And the location where you installed the package is inconsistent with the python interpreter you are using now.

You can use CTRL + SHIFT + P to open the command palette and search Python: Select Interpreter (or click on the interpreter version displayed in the lower right corner).

enter image description here

Select the environment interpreter where you have the urllib3 package installed.

like image 95
JialeDu Avatar answered Jun 27 '26 13:06

JialeDu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!