Before installing Python, check if Python is already installed on your computer. Steps to check if Python is already installed or not:
- Open Windows Powershell.
- Type
python --version
and press enter.
If an error message shown in the above gif is displayed, Python is not installed on your computer. There is a chance that an older version of Python is already installed on your computer. In this case, you need to uninstall the older version and install the latest version.
Follow the steps given below to install the latest version of Python in Windows:
Step 1: Click here and download the latest version of Python available. At the time of writing this article, the latest version is Python 3.9.1.
Step 2: Install the .exe file as soon as the downloading process completes. All you need to do is to keep pressing next until Python installs!
Note: Do not forget to check the “Add Python 3.9 to path” checkbox.
Step 3: This is all you need to do to install Python in Windows operating system. Verify the installation by typing python --version
in Windows Powershell.
Congratulations! You have successfully installed the latest version of Python on your computer.