vscode configure the specified version of python

3. Modify settings.json as follows 

{
    "python.defaultInterpreterPath": "/Users/xxx/anaconda3/bin/python",
    "window.zoomLevel": 1,
    "settingsSync.ignoredExtensions": [
        
    
    ],
    "code-runner.runInTerminal": true,
    "terminal.integrated.inheritEnv": false
}

python.defaultInterpreterPath is the path of the python version that needs to be configured 

4. Under the test

Guess you like

Origin blog.csdn.net/qq_21478261/article/details/114374274