报warning:Import “matplotlib.pyplot“ could not be resolved from source Pylance (reportMissingModuleSource)
已经确认成功install了matplotlib,mac os用户按command+shift+p(windows用户按ctrl+shift+p)打开command palette,输入python select interpreter,如图:
选择合适的version,新的或者换另外的试试,我从recommended的换到了global的就ok了
希望能帮到你!