How to install Python 3 on Windows?

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

  • Install Now: It will take care of all settings, you don’t need to worry about it.
  • Customize Installation: In case you want to disable or enable any feature then it would be better to choose this option.
Python Installation Window

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,

  • Install launchers for all users: It installs launchers for all users in the system
  • Add Python 3.10 to PATH: It allows you to run python in command prompt (CMD).

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 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!

Conclusion

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.