Python and VS Code Installation On Windows
Python and VS Code Installation On Windows
This is a guide to install Python Programming, Microsoft Visual Studio Code and setup
Python development environment on VS Code.
a. Python Installation
b. Visual Studio Code (VS Code) Installation
c. Setup of Python Development Environment on VS Code
d. Running your first Program.
It is recommended that you read this guide carefully to avoid any issues coming up
with wrong installation.
Python
The Python programming language is freely available and makes solving a computer
problem almost as easy as writing out your thoughts about the solution. You can
create both command-line and cross-platform GUI applications with Python. The
code can be written once and run on almost any computer without needing to
change the program.
Installation
Step 1
Check the OS version
• Windows
Right Click on “Computer Icon” and Select “Properties” Option to check the
OS type (32 or 64 bit).
Step 2
Download the File
https://www.python.org/downloads/release/python-3810/
This class will be using 3.8.10 to implement the python program. The class can
also install the latest version of Python if they want. (3.8.10 is recommended)
Step 3
Installing Python
Step 4
Verify the installation
If Windows open the Microsoft App Store, please search app execution aliases in
Windows. Turn off App installer Python.exe and python3.exe.
If your CMD did not find python command, please check step 3, you need to Add
python to Path.
Installation
Step 1
Visit the following link and click on the download for Windows or download for Mac
OS button. https://code.visualstudio.com/
Your download will start automatically.
Step 2
Open the downloaded installer file and accept the license agreement.
Step 3
Select “Add to Path” option.
Step 2
Search for Python in the “Extension” Market Place and click Install.
Step 3
Select the Interpreter.
Go To bottom right on the APP to see the option “interpreter”. Click on it and Select
the default executable path. Or else enter the path manually.
Open Folder and create a New Folder where you can save the program files.
Step 2
Select the Icon circled in Red and Create New File named “Hello.py”.
Step 3
Add the following line to the file.
Step 4
Run the program by clicking on the Green button.
Step 5
Output looks like this