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