Python 引入requests模块后VsCode出现问题提示 “could not be resolved” 解决方案
问题描述pylance 插件会提示一些语法错误或建议优化的问题,在使用 pip install 安装了新模块 import 引入后经常会在问题提示中出现 “Import "xxx模块" could not be resolved...”这里以安装 requests 为例,代码中 import PySimpleGUI as sg 在 VsCode 问题提示中出现 “Import “PySimpleGUI” could not be resolved” ,如图:只出现问题提示,代码运行正常。分析原因可能
转载
2022-05-15 00:07:30 ·
11062 阅读 ·
3 评论