Import "matplotlib" could not be resolved from source Pylance(reportMissingModuleSource)
I can reproduce your question when I select a python interpreter where doesn't exist matplotlib
:
So, the solution is opening an integrated Terminal then run pip install matplotlib
. After it's installed successfully, please reload window, then the warning should go away.