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:

enter image description here

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.