相关疑难解决方法(0)

如何在Visual Studio Code中更改python版本?

有一个我无法解决的问题。我已经设置好了:

1.用户设置

{
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"python.pythonPath": "python3",
"command": "python3",
Run Code Online (Sandbox Code Playgroud)

}

2.工作区设置

{
"python.pythonPath": "${workspaceFolder}/env/bin/python3.6",
"git.ignoreLimitWarning": true
Run Code Online (Sandbox Code Playgroud)

}

3.tasks.jason文件

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "python3",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"
Run Code Online (Sandbox Code Playgroud)

}

如果我使用调试控制台并且版本和路径正确,请 调试

但是无论我做什么,我的输出始终默认为“ python2.7”。我该如何改善? 输出

python visual-studio-code

12
推荐指数
7
解决办法
2万
查看次数

标签 统计

python ×1

visual-studio-code ×1