Как обновить версию python в windows
Перейти к содержимому

Как обновить версию python в windows

  • автор:

How to Update Python Version? — [Upgrade Python Version]

Are you looking to update Python version to the latest python version? Then this blog post will guide you with how to upgrade Python version.

List of content you will read in this article:

Python is an open-source high-level programming language that allows users to execute commands, plugins on their machine, and even software from several major suppliers. It means you can operate it on many different operating systems, including the Windows VPS Server. Python is a cross-platform programing language.

Pip is one of the best applications for Python package installation and administration. Pip’s popularity stems from the many apps that use this tool. Pip enables 3rd Party package installed to manage binary packages with the quickly configured package manager. Since Python’s latest releases have piping as normal, this guide will explain how to install PIP and how to update Python version with a complete step-by-step guide.

What is PIP?

PIP is a software management framework for installing and managing Python-written program packages. It is called the ‘preferred software installer’ or ‘Pip Installs Packages.’ PIP, used for Python, is a command-line interface for handling PyPI program installation. You might need to upgrade PIP if you’re using an earlier version of Python on Windows. Download the application file, open the command- line and start the installer to run PIP on Windows quickly. It will teach you how PIP is installed on Windows and how it can be modified, upgraded, and set up.

How to update Python on Windows Operating System?

There are two simple ways to update your current Python version with the latest one. They are as follows:

  1. Using the Python Installer
  2. Using the Windows Chocolatey Package Manager

So let’s see how we can update the Python version with these two methods, one by one.

Method 1: Python update on Windows using the Python Installer

This method of updating the Python version will work if Python is installed or not on your System.

If Python is already installed on your system, you can check it using the python -V command.

Step 1: Download the Python installer from the Official Website of Python

The easiest way to update the Python version is to download the latest version from the official website ( https://www.python.org/downloads/ )

You can click on the Download Python 3.11.0 button, and it will download the latest compatible Python version for your system.

Step 2: Install the Downloaded Python Installer

After downloading the exe file, double-click on it to install Python.

Step 3: Install Python

Now, you can install the latest version of Python.

Check the “Add python.ext to PATH”, then click on the “ Install Now ” button.

This will start the installation process.

After processing, the latest version of Python will be installed on your system.

Click on the “Close” Button.

Step 4: Verify the Update

After successful installation, you can verify whether or not the latest version is installed on your system. To check the version, you can again run the same command, python -V , on the prompt command.

Now, you can see that it is showing the latest installed version, i.e., Python 3.11.0.

Note: If it still shows the old version, you may restart your system . Or uninstall the old version from the control panel .

Method 2: Install Python using Command Line Only using the Chocolatey Package Manager

Chocolatey is a Package Manager command line tool for windows, and we can use it to install software for our window system. In our case, we can use it to install Python or update the current version of Python.

Step 1 Open The Powershell as Administrator

To install Chocolatey, you need to open PowerShell as Administrator.

Step 2: Install the Chocolatey Package Manager Command

Now, you can install the Chocolatey package manager using the following command.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString(‘https://community.chocolatey.org/install.ps1’))

Step 3: Verify the Chocolatey Installation

Now, you need to check whether Chocolatey has been installed successfully. To check it, run the “ choco ” command.

It is installed successfully because it is showing version Chocolatey v1.2.0.

Step 4: Update Python with Chocolatey

With the help of the choco upgrade command, we can update our current Python version.

choco upgrade python -y

Step 5: Verify the Version

You can again check the latest installed Python version using the following command.

python -V

Note: The old version of Python will remain on your system. You can uninstall the old version from the control panel.

How To Upgrade Python on macOS?

You can download the latest version of Python for macOS from the official Python website, similar to what you did on windows OS to update Python version on your system. To check whether it is updated to the lasted version or not, follow the below-listed commands to check the Python version.

If you want to execute this new Python release with the python command instead of python3, install an alias in your $HOME directory’s bash profile file.

Open the terminal window and type the following commands:

$ cd $HOME
$ nano .bash_profile

Then, at the bottom, add this segment.

Python 3.9 version can be checked using the following command.

How to Update Python version on LINUX?

Users can use the below listed Linux commands to upgrade Python version on the Linux server:

ppa:deadsnakes/ppa can be added to the system’s Software Sources to upgrade the machine with unsupported packages from this untrusted PPA.

$ sudo add-apt-repository ppa:deadsnakes/ppa

This command is used to update the Python package.

$ sudo apt update
$ sudo apt install python3.9

Then, using the commands below, you can search the versions of your new and current Python installations:

This command will show you the following version of python installed in your system

$ sudo python —version

$ sudo python3 —version

$ sudo python3.9 —version


We have seen how to update Python version on operating systems like Windows, Mac OS, and Linux. Follow the guide carefully to update your python software. We believe this guide fulfills your requirement though you can install the latest version successfully. Leave your comments below for your feedback and queries.

People Are Also Reading:


What is the latest python version?

Python is a programming language with many features and libraries that can be used for various purposes. The latest version of Python is 3.11.0, which was released on Oct. 24, 2022. This version includes bug fixes and improvements to the standard library.

How to Update Python: A Quick and Easy Guide

How to Update Python: A Quick and Easy Guide

Keeping your Python programming language up to date is essential for taking advantage of the latest features, improvements, and security fixes. As a Python programmer, you’ll want to make sure you’re using the most recent version to ensure optimal performance and compatibility with other libraries and frameworks.

To update Python on Windows and macOS, you can download the latest version from the official Python website, run the installer, and follow the prompts. If you’re using Linux, you can add the deadsnakes PPA, update your apt cache, and install the updated Python package.

How to Update Python

Keeping your Python installation current ensures you’re leveraging the full potential of the language. In this article, we’ll go over how to update Python on Windows, macOS, and Linux. For each operating system, we’ll outline the steps that you will need to update Python to the latest version.

Let’s get into it!

Table of Contents

How to Check Your Current Python Version

Before updating Python, it’s essential to know your current version of Python. You can easily check the Python version on your computer via the command line.

How to Check Your Current Python Version

This process varies slightly depending on your operating system.

How to Check Current Python Version on Windows

To check the current Python version on Windows, you can follow the steps given below:

  1. Press Win + R, type cmd, and hit Enter to open the Command Line Interface.
  2. Type python –version and press Enter. You should see your Python version displayed as shown in the image below:

This command will print the current Python version onto the terminal. As you can see in the image above, I am using the Python version 3.10.2.

How to Check Python Version on Mac and Linux

To check the current Python version on Mac and Linux, you can follow the steps given below:

  1. Open the Terminal (Press Ctrl+Alt+T on Linux).
  2. Type python3 –version and press Enter to display your Python 3 version. Alternatively, you may use python3 -V.

In both Windows and Mac/Linux, the output will look something like this:

Now that you know your current version, you can proceed with updating it if necessary.

In the next section, we’ll look at the process of updating Python to the latest version.

How to Update Python on Windows

In this section, you’ll learn how to update Python on your Windows computer using three different methods:

  1. Using the Python installer
  2. Using the Windows Microsoft Store
  3. Using Chocolatey

1. Using the Python Installer

To upgrade Python on your Windows system using the Python installer, follow these steps:

  1. Visit the Python Releases for Windows section on Python’s official website to find the desired version of Python.
  2. Click the DownloadPython button to download the installation file for the version you want, such as Python 3.11.
  3. Run the downloaded installer. If you’re upgrading from an existing Python 3.x installation, the installer will allow you to install the newer version alongside the older one.
  4. During the installation process, ensure that the “Add Python to PATH” option is checked, so the new version is available in your system’s PATH.
  5. Finally, open a command prompt (cmd) and type py.exe to verify that Python has been updated successfully.

Once you carry out all the steps outlined above, you’ll be able to use new features that come with the latest versions.

2. Using the Windows Microsoft Store

Another option to update Python is through the Windows Microsoft Store.

Using the Windows Microsoft Store to Update Python

You can follow the steps below if you’d like to update Python using the Windows Microsoft Store:

  1. Open the Microsoft Store on your Windows system and search for “Python.”
  2. Choose the Python version you want to install, such as Python 3.11.
  3. Click Get or Install to start the installation process.
  4. Once the installation is complete, you can find Python in the Start Menu.
  5. Open a command prompt (cmd) and type py.exe to verify that the new Python version has been installed successfully.

3. Using Chocolatey to Update Python

Chocolatey is a package manager for Windows that can help you update Python with ease.

Using Chocolatey to Update Python

You can follow the steps given below to update Python using Chocolatey:

  1. Install Chocolatey on your computer if you haven’t already. To do this, launch PowerShell as an administrator and run the following command:
  1. Once Chocolatey is installed, you can upgrade Python by running the following command in an elevated PowerShell window:

This will install the latest pre-release version of Python, such as Python 3.11.

  1. To keep your Python installation up-to-date in the future, simply run:
  1. Verify that Python has been updated by opening a command prompt (cmd) and typing py.exe.

You can see that our old version of Python got updated to the latest version, from 3.10 to 3.11.

By following the instructions for one of these methods, your Python installation on Windows should be up-to-date and ready for you to use in your development environment.

How to Update Version of Python on MacOS

In this section, we’ll discuss two methods to update Python to the latest Python version on your MacOS: using the Python.org installer and using Homebrew.

How to Update Version of Python on MacOS

1. Using the Python Installer

To update Python using the Python.org installer, follow the steps below:

  1. Visit the Python.org website and navigate to the Downloads section.
  2. Click on the “Latest Python 3 Release” link to download the installer for the most recent version.
  3. Once the download is complete, open the installer and follow the prompts to start the installation process.
  4. Throughout the installation, ensure that you select the “Add Python to PATH” option to update your system’s PATH environment variable.

After a successful installation, check your updated version by opening a terminal and typing python3 –version. This should display the latest version.

2. Using Homebrew to Update Python

Homebrew is a popular package manager for MacOS that can simplify your Python upgrading process. Follow these steps to upgrade Python version using Homebrew:

  1. First, ensure that Homebrew is installed on your computer. If not, you can install it by following the instructions on the Homebrew website.
  2. Open a terminal window and update Homebrew by running the following command: brew update.
  3. Now, to install the latest version of Python, you can run: brew install python. This command will download and install the most recent Python version.
  4. If you have already installed Python using Homebrew, you can use the command brew upgrade python instead.

Once the installation is complete, check your updated Python version in the terminal by running python3 –version. Your system should now be running the latest version of Python.

By following either the Python.org Installer method or the Homebrew method, you can easily update your Python installation on MacOS.

How to Update Python on Linux

In this section, you’ll learn how to upgrade Python on Linux using the APT package manager.

The APT package manager is an essential tool for managing software on Ubuntu and other Debian-based distributions.

How to Update Python on Linux

To upgrade Python using the APT repository, you can follow these steps:

  1. Open a terminal window.
  2. Update the package list by running the following command: sudo apt-get update
  3. Upgrade Python by executing the following command: sudo apt-get upgrade This command will upgrade Python to the default version in your distribution’s package manager, which might be slightly behind the official release but is considered stable.
  4. Verify the installation by running the following command: python —version This will display your existing version. If it has been successfully upgraded, it will show the new version.

By following the instructions in this section, you can successfully upgrade Python on your Linux system, ensuring you have the latest features, security patches, bug fixes, and tools available for your projects.

Final Thoughts

Updating Python is an essential step in keeping your development environment safe and efficient. By doing so, you’re ensuring access to the latest features and improvements.

When you upgrade Python, you benefit from the efforts of the Python community to make the language better, more secure, and more capable.

The newer versions of Python can give you faster execution, better memory management, and access to new libraries or functions. Every update to Python empowers you to write cleaner and more efficient code.

Whether you’re using Windows, macOS, or Linux, following the right steps will ensure a smooth transition to the newer version!

Frequently Asked Questions

In this section, we’ve listed some frequently asked questions when updating Python to the latest version. Give it a look as these questions may be helpful in some of the confusion you might have.

Frequently Asked Questions

How to upgrade Python on Windows?

To upgrade Python on Windows, visit the Python official website and download the installer for the version you want to update to.

Run the installer and follow the on-screen instructions. Remember to tick the “Add Python to PATH” option during the installation.

Can I update Python using pip?

No, you can’t update Python itself using pip. Pip is a popular Python package manager; it’s used to install and manage software packages/libraries written in Python, not to upgrade the Python interpreter itself.

How to update Python with conda?

To upgrade your Python version with conda, open your terminal or command prompt and enter the following command:

This will upgrade your Python version to the latest one available in your conda environment.

How can I switch from Python 2.7 to 3.6 on Linux?

To switch from Python 2.7 to 3.6 on Linux, you can use the following commands:

My Python Version is not updating, what should I do?

If your Python versions are not updating, double-check that you have installed the new version correctly and that your system PATH includes the updated version. You can also try uninstalling the old version of Python before installing the new one.

To learn more about handling errors in Python, check the following video out:

Get or update Python 3 on your computer

Anthony N. Carrillo

This is the fastest way to get python on your computer that I know of. And while there are many ways I suggest you use Anaconda. One of the best parts is that Anaconda offers installers for all OSs available. And since Python 2 is going to be killed off around 2020 by Python 3. It is best to get the 3.7 version installed.

1 — Download the installers for Windows, Mac, Linux. Although like anything else dealing with Linux I assume you already know all of this.

2 — Click through all of the default settings by clicking the “Continue” or “Install” buttons. While you can change the install settings on this page you should still select “install for me only” setting.

(I assume you are using YOUR computer, NOT a school or work one)

3 — Restart your computer.

And there you are. You should have python on your computer now. But first, read the next sections to make sure you did it right.

Where is the terminal?

If you are unaware of what the terminal is please follow the instructions from learn python the hard way to find out how to get to your terminal on your computer. No matter what OS it is.

To make sure you have the correct Python version

Go to the terminal (don’t type the ‘$’ sign EVER).

1 — In your terminal type $ python —version

You should get back something like Python 2.7.5

2 — If you get back version 2.whatever check for version 3

In your terminal type $ python3 —version

You should get back Python 3.7.0

If you got 3.7. whatever, YAY you did it.

UPDATE python 3

Use the Terminal for the following steps.

If you are in an environment with Python version 3. whatever, the following command updates Python to the latest version in the 3.whatever branch:

(bear in mind that it will take some time)

❌ But if that returns something like:

OR … (if the above fails the next command will do it)

✅ Now that you have done that you should finally see the following.

�� CONGRATS you finished the UPGRADE! ��

And you did not upgrade to the newest available anaconda 3 then try the next step.

The NEWEST Python 3 is 3.8 HOWEVER …
The installer is only up to 3.7 at the time of this writing. But that is OK for now don’t worry about it.

Congrats reader!
I hope that this short article helped you.
Welcome to a new world of possibilities.

Как обновить Python в Windows?

Как обновить Python в Windows?

Подробно рассмотрим как правильно обновить язык программирования Python.


Технологии развиваются быстро, а языки программирования — это основной драйвер развития. Нередко выходят корректирующие релизы исправляющие найденные ошибки или версии с расширением функционала. Python в этом плане ничем не отличается от других языков программирования, но процесс его обновления не столь сложен, как может показаться сначала. Если у вас получится обновить один раз, вы уже не забудете как его повторить, потому что это не сложно и очень быстро.

Узнаем текущую версию

Открываем пуск -> выполнить -> вводим команду cmd. В открывшемся окне пишем команду python —version и смотрим какая у нас версия.

Командная строка Windows

Командная строка Windows

Скачиваем последнюю версию

Переходим на официальный сайт www.python.org/downloads/ и скачиваем последнюю версию

Раздел загрузок официального сайта Python.org

Раздел загрузок официального сайта Python.org

Нажимаем кнопочку Download Python и скачиваем дистрибутив

Загрузка последней версии Python с помощью браузера Edge

Загрузка последней версии Python с помощью браузера Edge


Так как у меня установлена уже последняя версия Python мне пришлось скачать beta версию для демонстрации процесса обновления. Не пугайтесь из за того, что на картинках другая версия, это не ошибка ��

Запуск установочного пакета Python 3.9

Запуск установочного пакета Python 3.9

Ставим обязательно галочку перед пунктом Add Python 3.9 to PATH.

Нажимаем Install Now и переходим далее.

Обязательно предоставляем полные права приложению

Запрос прав администратора для установки Python

Запрос прав администратора для установки Python

Дожидаемся окончания процесса установки и в конце нажимаем Close

Завершение установки Python для Windows

Завершение установки Python для Windows

Проверка установки

В самом начале я описал процесс сверки текущий версии Python. Нам сейчас это необходимо повторить, только предварительно перезапустив окно cmd.exe иначе запуститься python старой версии ��


В этой статье мы рассмотрели процесс обновления языка программирования Python, прошли от первого до последнего шага и успешно завершили обновление.

На это все. Поздравляю, теперь у вас установлена последняя версия Python.

Программирую на Python с 2017 года. Люблю создавать контент, который помогает людям понять сложные вещи. Не представляю жизнь без непрерывного цикла обучения, спорта и чувства юмора.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *