1.安装python插件 2.配置Python解释器 Ctrl+Shift+P → 输入Python: Select Interpreter 选择已安装的Python路径"F:\CodeTool\Python\python.exe" 不要选系统自带的python环境C:\msys64\ucrt64\bin\python.exe