它过去工作得很好,但最近每当我运行代码 (Python) 时,当我将鼠标悬停在活动终端上时,我都会收到消息“Shell 集成无法激活”。活动的 Python 终端不再识别任何命令行命令,如“pip”(参见屏幕截图)
我能做些什么?我尝试了此处描述的几个设置,但似乎没有任何效果。我当前的setting.json 文件如下所示:
{
"python.defaultInterpreterPath": "C:\\Users\\cleme\\AppData\\Local\\Programs\\Python\\Python310\\python.exe",
"terminal.integrated.profiles.windows": {
"PowerShell": {
"path": "C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
"source": "PowerShell",
"icon": "terminal-powershell",
}
},
"terminal.integrated.defaultProfile.windows": "PowerShell"
Run Code Online (Sandbox Code Playgroud)
}