If you have installed any application in Windows, then installing Python is just a game for you. Follow these steps for Python Installation on Windows.
Step 1- Check System type
To select the correct software on your machine is the most important step to be efficient. For this you must know what your system type is. In Windows you can do this by right clicking on ‘My Computer’ or ‘This PC’ and select Properties Option.
From the Properties window check the system type. This information is required to download the Python Installation file. In this image you can see that the system is 64 bit, so we will download the 64 bit Python Installation File.
Step 2- Download the Installable
Follow this link https://www.python.org/downloads/windows/ to download the suitable Python Version for your system. Always download the latest version installation file since it will be having the latest upgrades for better coding.
Step 3- Install Python
This is the easiest step as you will install Python by simply double clicking on the downloaded file and follow the instructions.
Important: check the option Add Python to PATH. This will ensure that after installation the path of Python.exe is added to the Path Environment Variable of your system.
Python installation in progress! Wait
Once you see this message, you have completed python installation.
Step 4 check Python command prompt to test for correct installation
Open command window by typing ‘cmd’ in your Windows search box in left bottom corner of desktop.
On the command prompt type python and press enter. This is the prompt of Python where you can start typing and playing with Python commands. In the below example a print function is called with text argument ‘Hello I am a complete beginner to Python programmer’. Press enter and the same text will be printed on the screen as output. Next an arithmetic expression is written that gives the calculated value on screen.
The command prompt is not a convenient place to write complex python codes and you may also want to save them for later use. So it’s better to use an easy editor that comes with Python. It is Idle.
To use this editor go to programs and locate Python Group. Select IDLE from the apps under Python group.
You will get this screen titled Python Shell. You can type Python Commands to run individually.
If you want to create and save python Scripts then in the Python Shell you can click File and select ‘New’ option to open an editor where you can type and save your files in your preferred folder. The extension of these files is .py. To run the current python file from ‘Run’ Menu select ‘Run Module’ or press F5. The output will be displayed in the Python Shell. Before running the Python Script File you must save it.
So, Python Installation on Windows is done and we are ready to write our first Python program. Enjoy coding!!
Be First to Comment