重启vscode, 重新打开终端,查看是否虚拟环境激活。
每当我打开 vscode 工作区时,我都会尝试在终端中自动激活虚拟环境 .venv。我通过 pyenv 安装了 Python。 我尝试在用户设置 JSON 文件和工作区设置 JSON 中添加以下内容 "python.terminal.activateEnvInCurrentTerminal": true, "python.defaultInterpreterPath": "${workspaceFolder}\\.venv\bin\\python", 但这...
首先,开始在CSDN上搜自动激活虚拟环境的操作遇到的几个问题: 有的说settings.json配置一下就好 "terminal.integrated.shellArgs.windows": ["/k", "C:\\Virtualenv\\py3env\\Scripts\\activate"] 但是vscode提示: 此项已弃用,配置默认 shell 的新推荐方法是在#terminal.integrated.profiles.windows#中创建一个终...