VSCode警告 Import “package” could not be resolved
Pylance插件报告缺少的引入
解决方案
Ctrl+Shift+P打开命令面板,输入settings
,选择Preferences: Open Settings(JSON)
添加"python.pythonPath": "Your python path"
,加入python.exe
路径
保存,重新打开VSCode即可
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)