Catalog
Preface
Software installation
Anaconda To configure
VS Code To configure
The test program
This article describes how to configure the environment , Use vscode edit python Program .
This article uses the following two software :
Omit here Anaconda Installation steps . Pay attention to the following two points during installation :
add to Anaconda Go to the environment variable step :
1. stay Win10 Start Menu Mid search “Run”
2. stay Run Mid search “sysdm.cpl”
3. Open the environment variable configuration window
4. stay Path Add Anaconda Installation path for
Omit here VS Code Installation steps .
After the installation is completed, please wait Extensions Mid search python, And install python plug-in unit .
Next , Create a test with python Program , Confirm whether the environment is available .
1. Create a new one called “test.py” The file of , And use vs code open .
2. stay vs code Choose... In the lower right corner python Interpreter version
3. stay test.py Write the following “ classic ” Test code
print('Hello World!')
4. Click the run button
5. Confirm operation results