Go to the website shown and select the Download for your system.
At the prompt, select Run
This will install Visual Studio Code on your computer.
At the prompt, select “Open” to open the application.
On the left hand side of the editor, you can view installed extensions, and also install new ones.
Ensure that you have the Python extension, and you may add additional extensions such as those listed here also, if you wish.
Enter the extension you want, select the appropriate one from the list, and use the install button on the right hand side pane to install it.
After the Python extension is installed:
Create a Python file test.py by making a new file, and select Save As, making sure that the file extension is set to the python file-type.
Run with just a print statement:
print("Hello World!")
The program will run when you click on the "Play" like button to the right of the editor (top right).
the Python program executes in the terminal (Windows PowerShell)
In the terminal inside VS Code (bottom of the screen)
python -m pip install --upgrade pip --user
This will update pip. PIP is a package management system used to install and manage software packages written in Python. It stands for "preferred installer program" or "Pip Installs Packages." PIP for Python is a utility to manage package installations from the command line..
You will not need the --user switch if you have admin access to the computer. If you are not an admin and leave off this switch, you will get an error.
With pip updated we can add more modules:
python -m pip install easygui --user
and
python -m pip install arcade --user
These package installs will take a little more time to complete.
To test that the have installed correctly, add the following code above the print("Hello World!") statement.
import easygui
import arcade
print("Hello World!")
Run the code again- if the print statement executes, it means that the modules were found successfully.