报warning:Import “matplotlib.pyplot“ could not be resolved from source Pylance (reportMissingModuleSource) 

reference:https://stackoverflow.com/questions/70709406/import-matplotlib-could-not-be-resolved-from-source-pylancereportmissingmodul?newreg=bebd9db1dadb41f5b64f083a13ee4507

已经确认成功install了matplotlib,mac os用户按command+shift+p(windows用户按ctrl+shift+p)打开command palette,输入python select interpreter,如图:

选择合适的version,新的或者换另外的试试,我从recommended的换到了global的就ok了

希望能帮到你!

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐