vscode configure the local environment python

Record what vscode run python files, configuration python environment

1, install python plugin

2, just create a python file

3, the python profile launch.json

 4, add user settings

Click File-> Prefrences-> Settings, then click on the upper right corner, enter json mode, as follows

5, add python.pythonPath

 

 6, run the code

(1) The first way: the upper right corner triangle

(2) Right-run python file in terminal

 

Published 84 original articles · won praise 149 · views 50000 +

Guess you like

Origin blog.csdn.net/feifeiyechuan/article/details/102906201