0% found this document useful (0 votes)
43 views

Python Installation

The document provides step-by-step instructions for installing Python and Visual Studio Code on Windows. It details downloading and installing Python from python.org, setting the PATH variables for pip and pip3, and downloading and installing Visual Studio Code from Microsoft. It also describes installing Python and Code Runner extensions in VS Code.

Uploaded by

Qasim Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Python Installation

The document provides step-by-step instructions for installing Python and Visual Studio Code on Windows. It details downloading and installing Python from python.org, setting the PATH variables for pip and pip3, and downloading and installing Visual Studio Code from Microsoft. It also describes installing Python and Code Runner extensions in VS Code.

Uploaded by

Qasim Ali
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PYTHON PROGRAMMING BASICS

INSTALLATION OF PYTHON AND VS CODE


STEP BY STEP PROCEDURE

Steps:

Installation of Python:

1. Type “python.org” in your Google search bar.


2. Go to “Downloads” and then select “Windows”.
3. Hover your mouse over the “Downloads” option, you will see an option “Python
3.10.2” under “Downloads for Windows” option. Click on it and then it will start
downloading. (Note: Python 3.9 and future versions are only compatible for
Windows 10. For Windows 7 or earlier you have to install previous versions of
Python like “Python 3.8” etc. Steps are exactly the same).
4. As the download completes, click on it in order to open the file. A window will
appear. Check the box for “Add Python 3.10.2 to path” and then click on “Install
Now”. It will take some time to install. Now, click on “Disable the path length limit”
and then “Close” the window. Python has been installed.

Two Path Settings for Python:

Now, we need to set the path for Package Installers of Python known as “pip” and “pip3”.
These are used in our future work when we need to install some packages in Python. Now
we have to check whether their paths are set properly or not. Follow the following steps:

1. Type “cmd” in your Windows search bar, and open the “Command Prompt”
Application. A window will appear. Type “pip” or “pip3” any one of them. Press
“Enter”. If you get a detailed output then it means that pip has been set properly. If
you get an error, then we have to set its path manually which we will do now.
2. Open your “File Explorer” and type “%AddData%” in your address bar. You are right
now in the “Roaming” folder. Go back to the “AppData” folder on the top. Then go to
“Locals”, then “Programs”, then “Python”, and then finally go inside the “Python 310”
folder. From there, go to the “Scripts” folder. Inside that folder, you will get to see
“pip” and “pip3” installed. This is the path which we need to set in the Windows
environment.
3. Now, search “Edit the System Environment Variables” in the Windows search bar
and click on it. Select “Environment Variables”. In the upper window, click the “Path”
option and then select “Edit”. Now you will get to see the path of Step No. 2 (of pip
and pip3) written there. If it is not there, then click “New” and paste the path of the
pip folder (Step No. 2). Click “OK”.
4. Now, copy the path of the “Python 310” folder as mentioned in Step no. 2. Again
open the window for “Edit the System Environment Variables” as mentioned in Step
No. 3. Now in the lower window, select “Path” and click “Edit”. Another window will
appear. Click “New” and paste the path for “Python 310” there. If it is already there,
then you need not to paste it again.

Installation of Microsoft Visual Studio Code:

2
1. On Google, search “Microsoft Visual Studio Code Download” and open the first link,
i.e; “Microsoft Visual Studio Code - Max, Linux, Windows”.
2. Under the “Windows” option, click “64-bit” System Installer. Downloading will start.
Once it is downloaded, open the file.
3. Once you open it, check on the agreement and click “Next” a couple of times. Do
check the option for “Create a Desktop Icon” and finally click on “Install”. It will take
some time to get installed. Click “FInish”. VS Code will open.
4. Once you open it, go to the last option “Extensions” on the left-side bar.
5. Under “Python”, click “Install”. Once it is installed, search another extension for
python that is “Code Runner” and type it in the search bar. Click on “Install” under it
as well.
6. After installing the above mentioned extensions, go to the first option in the side-bar
as “Explorer” and you can open the folder you have made for python programs. You
can also create “New File” or “New Folder”.
7. Go to “File”, then “Preferences” and then “Settings”.
8. Type “run code” in the search bar and check the following options:
● Clear previous output
● Run in Terminal
● Save File Before Run

Visual Studio Code has been downloaded. Now, you are good to go. Best of Luck!

You might also like