How to update Python on Windows? - GeeksforGeeks (2024)

Last Updated : 13 Aug, 2024

Summarize

Comments

Improve

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:

How to update Python on Windows? - GeeksforGeeks (1)

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.

How to update Python on Windows? - GeeksforGeeks (2)

Step 2: Download Python

Click on the Downloads tab.

How to update Python on Windows? - GeeksforGeeks (3)

Here you will get a list of available releases.

How to update Python on Windows? - GeeksforGeeks (4)

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.

How to update Python on Windows? - GeeksforGeeks (5)

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”.

How to update Python on Windows? - GeeksforGeeks (6)

This will start the installation as shown below:

How to update Python on Windows? - GeeksforGeeks (7)

After the installation is successful you will get the following message:

How to update Python on Windows? - GeeksforGeeks (8)

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:

How to update Python on Windows? - GeeksforGeeks (9)

How to update Python on Windows? – FAQs

How Do I Update the Python Version in Windows?

Updating Python on Windows typically involves downloading the latest version of Python from the official Python website and installing it over your current installation. Here’s a step-by-step guide:

  1. Visit the Official Python Website: Go to python.org and download the latest version of Python for Windows.
  2. Run the Installer: Launch the downloaded installer. Ensure to check the box that says “Add Python to PATH” at the beginning of the installation process.
  3. Upgrade Installation: Choose “Upgrade Now” to replace the current version with the new version. This option keeps your scripts, packages, and settings.
  4. Verify Installation: Open Command Prompt and type python --version to check the updated version of Python.

How to Check Latest Version of Python in cmd?

To check the currently installed version of Python using the Command Prompt, you can use the following command:

python --version

If Python is installed and properly added to your system’s PATH, this command will display the version of Python that is currently set as the default.

How Do I Update My Python Package to the Latest Version?

To update a specific Python package to the latest version, use the pip package manager. Here’s how you can update a package:

pip install --upgrade package_name

Replace package_name with the name of the package you wish to update.

How Do I Change the Current Version of Python?

If you have multiple versions of Python installed on your Windows machine and you want to change the version used when you run python commands:

  1. Adjust the System PATH: Modify the order of paths in your system’s PATH environment variable so that the directory containing the executable of the version you want to use is listed first.
  2. Use Python Launcher for Windows: The Python Launcher for Windows (py.exe) can be used to specify a version when running scripts.
    • You can specify the Python version by using:Replace 3.x with the specific version number, like 3.8 or 3.9.
py -3.x script.py

How to Update pip in cmd?

To update pip, the Python package installer, in the Command Prompt, you can run the following command:

python -m pip install --upgrade pip

This command ensures that you are using the latest version of pip, which is recommended for security and stability reasons and to ensure compatibility with all newly released packages



Please Login to comment...

How to update Python on Windows? - GeeksforGeeks (2024)
Top Articles
Why has my domain been suspended? - Domains - Namecheap.com
How Much Does Internet Cost Per Month?
Oriellys Bad Axe
Cetaphil Samples For Providers
Auto Wheels & Tires near Cleveland, OH - craigslist
Bismarck Mandan Mugshots
Julian Sands Shirtless
Beau Burns Gofundme
What Is Z Drive in Windows 10 and How to Remove It Safely?
Lt4200 Huskee Manual
Seat Number Usana Seating Chart With Rows
Marcus Samuelsson Daughter Zoe
Pitco Foods San Leandro
Santa Ana Gang Map
MBTA officially announces Sept. 30 date for partial reopening of Winchester Center Commuter Rail Station
Bone Of The Ancients
Stoughton Commuter Rail Schedule
Trejo's Blanchard Menu
Trib Live High School Sports Network
Knox Horizon Complete Auto Care Reviews
Demon Deals Gamcore
What To Expect When Moving With a U-Haul Trailer (2024)
Zoella How To Squirt
Drunk Farmer Morning Routine
Tiraj Rapid Georgia Midi
F9 2385
Baris Atay Twitter
Wedding Dr Amy Hutcheson Married
Sign of the times: Emma Memma finds her calling after Wiggles
Powell And Sons Chimney Repair
Cole's Dockside Pre Fixe Menu
Best Zoroark Build Unite
Condo Uploader
Huff Lakjer Funeral Home
Dr Bizzaro Bubble Tea Menu
williamsport housing - craigslist
It's spooky how fast Spirit Halloween stores pop up. Here's how the retailer does it
Sunny Nails Whitehouse
Qpublic Pierce County Ga
When to File Your Adjustment of Status Application for Family-Sponsored or Employment-Based Preference Visas: October 2024
Sml Wikia
Joeyfeetgirl
Toro 21 Front Mount Dethatcher
Craigslist Room For Rent
Dfps Provider Portal And Training Hub
Spoiler - Death Is The Only Ending For The Villain
Kobalt Kst 180-06 Parts
Gunny's Burgers The Mule
Latest Posts
Article information

Author: Jamar Nader

Last Updated:

Views: 6187

Rating: 4.4 / 5 (75 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Jamar Nader

Birthday: 1995-02-28

Address: Apt. 536 6162 Reichel Greens, Port Zackaryside, CT 22682-9804

Phone: +9958384818317

Job: IT Representative

Hobby: Scrapbooking, Hiking, Hunting, Kite flying, Blacksmithing, Video gaming, Foraging

Introduction: My name is Jamar Nader, I am a fine, shiny, colorful, bright, nice, perfect, curious person who loves writing and wants to share my knowledge and understanding with you.