Last updated on December 28, 2022
In this article, we will be learning how to install Python 3 on Windows through the installer file. To download the installer file, go to Python’s official website and click on the download page. Or you can directly open the page where installer files are listed for different operating systems. At the time of writing this article, python’s latest version is 3.10.7.
Once you landed on the page, you need to click on Windows installer (64-bit) to download the installer. This installer file link is in the files table.
After downloading the installer file, right-click on it and select Run as Administrator to start the installation process. At the beginning of the installation, a window will ask you to choose installation options from the list
In my case, I selected Install Now to install quickly. Before clicking on Install Now option you need to click on two checkboxes that are in the same window,
After clicking the Install Now option, the installer will take a few seconds to install python. Once it is installed you can check and verify it through the command prompt. Open the command prompt and run the below command to check the version
python – version
In my case, it returns Python 3.10.7 which proves that python has been installed. Next, create a python-workspace
folder in disk C or any other disk. Then create a file with the name hello.py
and add the below code to it,
print("Hello, Coder Advise!")
To execute the hello.py
file open the command prompt and go to the python-workspace directory and run the below command,
python hello.py
It should return Hello, Coder Advise!
In this article, we learned how to install python 3 on Windows. If you would like to learn more about it then check out our Python page.