Download and use the latest version of win11 vscode2023, configure python

Download and install vscode

Insert image description here
2.
Insert image description here
3.
Insert image description here

4.Insert image description here

5. Insert image description here
Double-click to install. The installation process is very short. The main thing is to modify the location. Others can be defaulted.

vscode configure python

Note: I first used the virtual environments of pycharm and anconda, which have python compilers. If you don’t have a python compiler, please download the compiler first.

Install Chinese extension

Note: If the extension is successfully installed, you will be prompted to restart in the lower right corner. You can also choose to use the English version.
Insert image description here
Search for: chinese and then install it.
Insert image description here

Install python extension

Insert image description here

Select vscodeproject folder

Create an empty folder to store files
Insert image description here

Create py file

Insert image description here

Two steps before running

1. Select the compiler in the lower right corner. After clicking, a selection box will pop up at the top of the page.
Insert image description here
2. Select the terminal.
Insert image description here
Insert image description here

run

Insert image description here
Insert image description here

virtual environment

python -m venv venv

Guess you like

Origin blog.csdn.net/weixin_46483785/article/details/132277214