Installing Python3 in Windows 10

Python is one of the most commonly used high-level programming language that was invented by Guido Van Rossum in 1991 and is maintained by the Python Software Foundation. One of the major contributors to Python’s rise to fame is its development which had emphasis on code readability and expression of concepts by programmers in fewer lines of code.

Python is a cross-platform software and its learning curve is somewhat smooth learning curve as compared to some other programming languages.

This tutorial highlights the steps taken in installing Python software in Windows 10 operating system and can act as a guide to those beginners who would like to try out the language and also those who might experience challenge in installing the software.  

Downloading Python

To download Python, navigate in your preferred browser to the download page in Python’s official website. When the web page opens it appears as shown below and contains a list of all the Python’s releases for Windows. Click on the first link labelled Download Windows Installer (64-bit)  which assumes that you are using a 64-bit computer otherwise you can download the 32-bit one. The latest version as of this tutorial is version 3.9.2.

The download session starts once the link above has been clicked. The browser being used below is Microsoft Edge therefore if one is using another browser the download window could look different from this one.

Once the download is complete, in open the file explorer and navigate to Downloads folder and the downloaded installer appears as shown below. Note the amd64 suffix that indicated that this is a 64-bit installer.

At this point we have been able to successfully download python installer in the Windows machine and the next step will be to install Python.

Installing Python

To install Python, double click the downloaded installer or alternatively right click and select the first option labelled open and the installation wizard will appear on the screen as shown below. Click on the Customize installation option.

This page shows several options among them being to install with the default settings and to customize the installation.  The important thing in the window above is to ensure that the second checkbox is checked as shown thus ensuring that Python is added to the windows path.

On clicking the customize option, the installation window displays all the optional features and gives the user the liberty to check and uncheck the options shown. Leave the checkboxes as they are and click Next button. 

The window showed below contains the list of advanced options for installation and the text besides the checkboxes explains what each option does and below it the path to the directory of installation. Once satisfied with the options, click Install button.

On clicking Install button above, the installation process begins and the progress of the installation is indicated by the green progress bar shown below.

The installation process may take some minutes depending on the computer processing power and memory. When the installation has completed successfully, the following message is shown in the installation wizard. To view the online tutorials, documentation and the new Python features click on each of the links consecutively, otherwise click Close button to close the installation wizard.

 

After closing the installation wizard, click on the start button on your keyboard that in most cases is a key that has a Windows logo icon on it and type Python and by default, Windows filters the items with the name and the item of our interest in this is the option that has the python console icon as shown below. 

Click on the icon shown above and a black window that looks similar to the Windows Command Prompt (CMD) appears as shown below. This window is referred to as the Python Console and the consist of three symbols >>> and a blinking cursor. 

The Python Console can also be referred to as the Python Interactive Shell or the REPL standing for Read Evaluate Print Loop. It is an interactive window that one can type in commands and it shows an output. An example of the interactivity is demonstrated in the shell below. Once your Python shell is open, then type the following line of code.

print('Hello world')

And it shall print out Hello world text as shown below.

We have been able to install and run Python in this tutorial. For more detailed documentation on Python visit the Python Documentation.

 

HAPPY CODING

Leave a Comment

Your email address will not be published. Required fields are marked *