How to update Python on Windows?
In this article, we are going to see how to update Python in the Windows system. For the sake of example, we will be upgrading from Python 3.6.8 to Python 3.9.6. Here, we will see how to upgrade the Python version.
Upgrading Python on Windows
To check the current version of Python on your system, use the following command in the command prompt:
python -V
This will show you your current Python version as shown below:
Upgrade Python Version Using Executable installer
Follow the below steps to update the Python version on Windows:
Step 1: Visit the Official Site
Go to Python’s official site.
Step 2: Download Python
Click on the Downloads tab.
Here you will get a list of available releases.
Step 3: Download the Python 3.9.6 Installer for Your System
Download the version you need to upgrade to based on your system specifications(ie, 32-bit or 64-bit). Here we will be downloading the 64-bit installer for 3.9.6.
Step 4: Initiate Python 3.9.6 Installation
Click on the installer and it will begin the installation. Make sure to select the “Add Python 3.9 to PATH” option. and click on “Install Now”.
This will start the installation as shown below:
After the installation is successful you will get the following message:
Step 5: Verify Python Installation
Now if you open up your cmd and use the below command:
python -V
You’ll see your version of Python has been updated to 3.9.6 as shown below: