一、VScode下载

官网

Download Visual Studio Code – Mac, Linux, Windows

Windows64x下VScode下载过程

点击64 bit会跳转到下载页面

Windows64x下VScode下载过程

把框中的内容替换成下面的

vscode.cdn.azure.cn 就会弹出一个新的下载,速度变快

Windows64x下VScode下载过程

安装过程就是直接下一步

下载python插件

Windows64x下VScode下载过程

按下ctrl+shift+p在搜索框中搜索

python:Select Interpreter

Windows64x下VScode下载过程

点击后会弹出一个新增环境变量,点击 

Windows64x下VScode下载过程

配置setting.json文件

Windows64x下VScode下载过程

Windows64x下VScode下载过程

 可以根据需要配置setting.json文件

{
    "editor.fontSize": 15,
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true,
    "window.zoomLevel": 1,
    "python.analysis.indexing": true,
    "python.languageServer": "Pylance",
    "python.analysis.extraPaths": [
        "C:\\Users\\176738",
        "C:\\Users\\176738\\AppData\\Local\\Programs\\Python\\Python39\\DLLs",
        "C:\\Users\\176738\\AppData\\Local\\Programs\\Python\\Python39lib",
        "C:\\Users\\176738\\AppData\\Local\\Programs\\Python\\Python39",
        "C:\\Users\\176738\\AppData\\Local\\Programs\\Python\\Python39\\Lib\\site-packages",
    ],
    "terminal.integrated.env.windows": {
        "PYTHONPATH": "${workspaceFolder};${env:PYTHONPATH}"
    },
    "editor.unicodeHighlight.invisibleCharacters": false,
    "editor.renderWhitespace": "all",
    "workbench.editorAssociations": {
        "*.db": "default"
    },
    "redhat.telemetry.enabled": true,
    "security.workspace.trust.untrustedFiles": "open"
}

Windows64x下VScode下载过程

完成python环境的配置

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。