Python Installation
Python Installation
Steps:
Installation of 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.
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!