vscode 配置 python3开发环境

独立安装python3的:

用户设置里面添加一下python3的路径即可

 

配置launch.json 文件

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python3",
            "type": "python",
            "request": "launch",
            "stopOnEntry": false,
            "pythonPath": "/usr/bin/python3", //python3的安装路径
            "program": "${file}",
            "cwd": "${workspaceFolder}",
            "env": {},
            "envFile": "${workspaceFolder}/.env",
            "debugOptions": [
                "RedirectOutput"
            ]
        }        
    ]

 

 

你可能感兴趣的:(Python)