C:\python>python --version Python 3.11.0
Для обращения к версии 3.10 (и всем другим версиям) необходимо использовать указывать номер версии:
C:\python>py -3.10 --version Python 3.10.9
например, выполнение скрипта hello.py с помощью версии 3.10:
py -3.10 hello.py
Подобным образом можно вызывать и другие версии Python.
MacOS
На MacOS можно установить разные версии, например, загрузив с официального сайта пакет установщика для определенной версии.
Для обращения к определенной версии Python на MacOS указываем явным образом подверсию в формате python3.[номер_подверсии] . Например, у меня установлена версия Python 3.10. Проверим ее версию:
python3.10 --version
Аналогично обращении к версии python3.9 (при условии если она установлена)
python3.9 --version
К примеру выполнение скрипта hello.py с помощью версии python 3.10:
python3.10 hello.py
Linux
На Linux также можно установить одновременно несколько версий Python. Например, установка версий 3.10 и 3.11:
sudo apt-get install python3.10 sudo apt-get install python3.11
Одна из версий является версий по умолчанию. И для обращения к ней достаточно прописать python3 , например, проверим версию по умолчанию:
python3 --version
Для обращения к другим версиям надо указывать подверсию:
python3.10 --version python3.11 --version
Например, выполнение скрипта hello с помощью версии Python 3.10:
python3.10 hello.py
Но может сложиться ситуация, когда нам надо изменить версию по умолчанию. В этом случае применяется команда update-alternatives для связывания определенной версии Python с командой python3. Например, мы хотим установить в качестве версии по умолчанию Python 3.11. В этом случае последовательно выполним следующие команды:
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 2
Числа справа указывают на приоритет/состояние. Так, для версии 3.11 указан больший приоритет, поэтому при обращении к python3 будет использоваться именно версия 3.11 (в моем случае это Python 3.11.0rc1)

С помощью команды
sudo update-alternatives --config python3
можно изменить версию по умолчанию
Python
If you are a Windows user, we recommend that you install Python for Windows.
Supported versions
- Python 2: version 2.7
- Python 3: from the version 3.6 up to the version 3.12
The following features are available as part of Python 3.12 support:
- PPEP 695 – Type Parameter Syntax
- PEP 669 – Low Impact Monitoring for CPython
- PEP 701 – Syntactic formalization of f-strings
- PEP 698 – Override Decorator for Static Typing
The following features are available as part of Python 3.11 support:
- PEP 673 – Self Type
- PEP 646 – Variadic Generics
- PEP 654 – Exception Groups and except*
- PEP 655 – Marking individual TypedDict items as required or potentially-missing
The following features are available as part of Python 3.10 support:
- PEP 647 – User-Defined Type Guards
- PEP 604 – Allow writing union types as X | Y
- PEP 612 – Parameter Specification Variables
- PEP 613 – Explicit Type Aliases
- PEP 634 – Structural Pattern Matching: Specification
- PEP 635 – Structural Pattern Matching: Motivation and Rationale
- PEP 636 – Structural Pattern Matching: Tutorial
The following features are available as part of Python 3.9 support:
- PEP 585 – Type Hinting Generics In Standard Collections
- PEP 593 – Flexible function and variable annotations
- PEP 614 – Relaxing Grammar Restrictions On Decorators
The following features are available as part of Python 3.8 support
- PEP-570 – Python Positional-Only Parameters
- PEP-572 – Assignment Expressions
- PEP-586 – Literal Types
- PEP-589 – TypedDict: Type Hints for Dictionaries with a Fixed Set of Keys
- PEP-591 – Adding a final qualifier to typing
- Python bug tracker task #36817 – Support = expressions in f-strings
PyCharm integrates the following features of Python 3.7:
- PEP-561 – Distributing and Packaging Type Information
- PEP-544 – Protocols: Structural subtyping (static duck typing)
- PEP-557 – Data Classes
- PEP-560 – Core support for typing module and generic types
- PEP-562 – Module __getattr__ and __dir__
- PEP-563 – Postponed Evaluation of Annotations
Python support in PyCharm
PyCharm provides the following features to help you work with Python:
Update PyCharm
By default, PyCharm is configured to check for updates automatically and notify you when a new version is available. Updates are usually patch-based : they are applied to the existing installation and only require you to restart the IDE. However, sometimes patch updates are not available, and a new version of PyCharm must be installed.
When PyCharm updates to a new major release, it opens the What's New in PyCharm tab in the editor with information about the changes, improvements, and fixes. To open this tab manually, select Help | What's New in PyCharm .
If PyCharm does not have HTTP access outside your local network, it will not be able to check for updates and apply patches. In this case, you have to download new versions of the IDE and install them manually as described in Standalone installation. On macOS, you can delete the outdated version of PyCharm from Application and then drag the newly installed version to Application .
Toolbox App
If you installed PyCharm using the Toolbox App, it will suggest that you update the IDE when a new version is available.
Automatically update all managed tools

- Open the Toolbox App and click the Toolbox App menu icon in the top right corner.
- In the Toolbox App Settings dialog, expand Tools and select Update all tools automatically .
If you disable this option, you will need to click Update next to any instance when a newer version comes out.
You can also configure the update policy for every managed IDE instance separately.
Configure the update policy for a specific instance
- Open the Toolbox App, click next to the relevant IDE instance, and select Settings .
- In the instance settings dialog, select the update channel to use for this IDE instance:
- Release : Update only to stable releases that are recommended for production.
- Early Access Program : Includes updates to release candidates , beta releases, and EAP builds, which are not recommended for production and include feature previews.
Standalone instance
If you installed PyCharm manually, the standalone IDE instance will manage its own updates. It will notify you when a new version is available (show you a notification in the Event Log tool window). You can choose to update the current instance, download and install the new version as a separate instance, postpone the notification, or ignore the update entirely.

On Linux, it is not recommended to manually update an existing standalone PyCharm installation to a newer major version. You should always extract the downloaded tarball to a clean directory. For more information, refer to Standalone installation.
If you installed PyCharm using root privileges, you should use the same level of privileges to update the IDE.
Configure the update policy
To manage the PyCharm update policy, open Settings Control+Alt+S and select Appearance & Behavior | System Settings | Updates .
If the IDE instance is managed by the Toolbox App, these settings will affect only plugin updates.
The Updates page contains the following settings:
Check IDE updates for
Select whether you want PyCharm to check for updates automatically and choose an update channel.
- Early Access Program : Provides all updates, including major version EAP builds and minor version Preview builds. This channel is not recommended for production development. PyCharm can be updated only to a minor Preview version, but not to a major EAP build. For example, you can update PyCharm 2021.1.1 to 2021.1.2 , but not to 2021.2 EAP . The 2021.2 EAP version in this case will be installed as an additional instance. EAP versions can be updated to both newer EAP and stable PyCharm versions. If an EAP version is updated to a stable version at some point, the name of the original installation directory does not change.
- Beta Releases or Public Previews : Includes stable releases, release candidates, and beta releases. Some updates in this channel may contain minor bugs and feature previews.
- Stable Releases : Includes only stable releases that are recommended for production.
You can choose the update channel only if you are using a stable version . For EAP builds, the channel is always set to Early Access Program .
Check for plugin updates
Select whether you want PyCharm to check for new versions of plugins automatically.
Check for Updates
Check for updates immediately.
Alternatively, go to Help | Check for Updates on Windows or Linux, or PyCharm | Check for Updates on macOS.
Manage ignored updates…
Show the list of updates that were ignored. These updates will not be suggested until you remove them from the list of ignored updates.
If you remove several updates from the ignored list, only the most recent will be offered for download when you check for updates.
Show What's New in the editor after an IDE update
Open a tab with information about new features and improvements after a major IDE update.
Snap package
If you installed PyCharm as a snap package, it will manage updates automatically. All snaps are updated automatically in the background every day. You can also get the latest version of all snaps manually at any time by running the following command:
sudo snap refresh
Or if you want to update only the PyCharm snap:
Как обновить Python в Windows?

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

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

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

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

Ставим обязательно галочку перед пунктом Add Python 3.9 to PATH.
Нажимаем Install Now и переходим далее.
Обязательно предоставляем полные права приложению

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

Проверка установки
В самом начале я описал процесс сверки текущий версии Python. Нам сейчас это необходимо повторить, только предварительно перезапустив окно cmd.exe иначе запуститься python старой версии
Заключение
В этой статье мы рассмотрели процесс обновления языка программирования Python, прошли от первого до последнего шага и успешно завершили обновление.
На это все. Поздравляю, теперь у вас установлена последняя версия Python.
Егор Егоров
Программирую на Python с 2017 года. Люблю создавать контент, который помогает людям понять сложные вещи. Не представляю жизнь без непрерывного цикла обучения, спорта и чувства юмора.
Ссылка на мой github есть в шапке. Залетай.
Оцените автора

Добавить комментарий Отменить ответ
Борис 11.12.2021 в 11:42
К сожалению автор не указал, что «обновить Python» невозможно! И короткий ответ на заголовок статьи — НИКАК! Можно поставить новую версию. А вот как управляться имея разные версии — это вопрос интересный!
Егор Егоров автор 25.04.2022 в 15:49
Скажу по секрету, что большинство программ обновлясь перезаписывают свои данные так же как и полная переустановка, только это происходит в тихом режиме, скрытом от пользователя.
Алексей 26.06.2022 в 15:20
Питон не затирает старую версию. И при установки новой версии у вас после будут стоять несколько версий питона.
По этому если хотите только одну версию сначала нужно удалить все предыдущие.
Или можно просто выбирать интерпретатор тот который требуется
Егор Егоров автор 02.07.2022 в 02:07
Хм, не знал, спасибо, давно слез с Windows, еще до того, как начал программировать
Николай 26.12.2023 в 19:59
соболезную
Влад 16.10.2021 в 20:53
У меня Windows 7 32bit, ну можно сказать старичок ноутбук он разумеется моложе чем я (на 4 года+-, так как я не знаю был ли он когда мне было 8 летб сейчас 13)
и версия 3.9.4 показывает что виндовс старый (нужна версия чтобы хотя бы работал pygame и pyinstaller, чтобы работала банальная змейка и разные пинг понг (питону только учусь месяц, интересно что ровно потому что начал я 15 числа сентября). Если автор поможет потому что я так сказать по мягче даже не понимаю нафига он что за него такие суммы платят хотя это просто программа(типа Майнкрафт за $2.5 миллиарда)), надеюсь за граматику ни кто не на ругает.
Егор Егоров автор 25.10.2021 в 13:52
Честно говоря, никогда не сталкивался с проблемой несоответствия версий операционной системы и python. На сколько я сейчас знаю (а я не пользуюсь windows уже очень давно), Windows 7 вышла из официальной поддержки Microsoft, может вам все таки обновить систему до актуальной версии и проблема решится ?:)
Jerry 04.11.2021 в 23:29
Писака прав. На 7 винде 3.6 что ли версия максимум ставится, около того. И если уж ты решил плотненько сесть на программирование, то не хотел бы рассмотреть в качестве операционной системы что-то из линукс дистрибутивов?