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:
Install plugins
Plugins extend the core functionality of PyCharm. For example, install plugins to get the following features:
- Integration with version control systems, issue trackers, build management servers, and other tools.
- Coding assistance support for various languages and frameworks.
- Shortcut hints, live previews, File Watchers, and so on.
- Coding exercises that can help you to learn a new programming language.
By default, PyCharm includes a number of bundled plugins. You can disable bundled plugins, but they cannot be removed. You can install additional plugins from the plugin repository or from a local archive file (ZIP or JAR).
Open plugin settings

- Press Control+Alt+S to open the IDE settings and then select Plugins .
Use the Marketplace tab to browse and install plugins from JetBrains Marketplace or from a custom plugin repository.
Use the Installed tab to browse bundled and installed plugins, enable, disable, update, or remove them. Disabling unnecessary plugins can increase performance.
Most plugins can be used with any JetBrains product. Some are limited only to commercial products, others require a separate license.
If a plugin depends on some other plugin, you can find a list of the dependencies in the Additional Info tab. If your project depends on certain plugins, add them to the list of required plugins.
By default, PyCharm includes several bundled plugins. You can disable bundled plugins, but they cannot be removed. You can install additional plugins from the plugin repository or from a local archive file (ZIP or JAR).
Install plugin from Marketplace
- Press Control+Alt+S to open the IDE settings and then select Plugins .
- Click the Marketplace tab and type the plugin name in the search field.
- To install the plugin, click Install and restart PyCharm.
To install a specific version, go to the plugin page in JetBrains Marketplace, download and install it as described in Install plugin from disk. For example, you can do it if the most recent version of the plugin is broken.
Install plugin from disk

- Download the plugin archive (ZIP or JAR).
- Press Control+Alt+S to open the IDE settings and then select Plugins .
- On the Plugins page, click and then click Install Plugin from Disk… .
- Select the plugin archive file and click OK .
- Click OK to apply the changes and restart the IDE if prompted.
Install plugin from command line

- Quit the IDE on which you want to install the plugin.
- From JetBrains Marketplace page, find the page of the required plugin, select the Versions tab, and click any version to copy pluginId . pluginId is a short name of the plugin you want to install. For example, tanvd.grazi .
- Install the plugin:
Navigate to the bin directory under your PyCharm installation directory and run the following command:
pycharm64.exe installPlugins
For example:
pycharm64.exe installPlugins tanvd.grazi
Run the following command:
open -na "PyCharm.app" --args installPlugins
For example:
open -na "PyCharm.app" --args installPlugins tanvd.grazi
Navigate to the bin directory under your PyCharm installation directory and run the following command:
pycharm.sh installPlugins
For example:
pycharm.sh installPlugins tanvd.grazi
Remove plugin
You cannot remove bundled plugins.

- Press Control+Alt+S to open the IDE settings and then select Plugins .
- Open the Installed tab and find the plugin that you want to remove.
- Expand the Disable list and select Uninstall .
Disable plugin
You can disable a plugin without removing it if you do not need the corresponding functionality.
- Press Control+Alt+S to open the IDE settings and then select Plugins .
- Open the Installed tab, find and select the plugin that you want to disable.
- On the plugin's description pane, click Disable . Alternatively, you can use the checkboxes in the list of plugins or the Disable all buttons for plugin categories.
You can disable or enable all manually installed plugins at once (non-bundled) in the menu under .

Required plugins
A project may require plugins that provide support for certain technologies or frameworks. You can add such plugins to the list of required plugins for the current project, so that PyCharm will verify that the plugins are installed and enabled. It will notify you if you forget about some plugin, or someone on your team is not aware about the dependency as they work on the project.
Add a required plugin for your current project

- Make sure the required plugin is installed.
- Press Control+Alt+S to open the IDE settings and then select Build, Execution, Deployment | Required Plugins .
- On the Required Plugins page, click and select the plugin. Optionally, specify the minimum and maximum version of the plugin.
To specify the required version of PyCharm itself, add IDE Core to the list of required plugins.
The list of required plugins is stored in the .idea/externalDependencies.xml file of your project. When you open the project in PyCharm, it will notify you if the required plugin is disabled, not installed, or requires an update.

Click the link in the notification message to quickly enable, install, or update the required plugin.
Suggested plugins
When you open a project, PyCharm can suggest installing and enabling plugins based on libraries used in your project. Do not confuse suggested plugins with required plugins that you can manually add to a project so that your teammates also use it.
For more information about the criteria for suggesting plugins, refer to the JetBrains Marketpalce documentation.
If you don't need a particular plugin, you can prevent PyCharm from suggesting it. You can also use your notification settings to disable or enable notifications of all plugin suggestions and the way they are displayed.
Disable suggestions of a plugin
- When a notification of a suggested plugin appears, click Don't suggest again .
Next time when you open a project, PyCharm will not suggest this plugin.
Check a project for suggested plugins
You can check your project for suggested plugins except for plugins for which you have disabled suggestions.

- Press Control+Shift+A and start typing Check Suggested Plugins .
- Select the Check Suggested Plugins action.
- If PyCharm has a plugin applicable to your project, you'll see the notification message. Click the link in the notification message to install or enable the suggested plugin.
Alternatively, you can open the IDE settings ( Control+Alt+S ) and go to Plugins | Marketplace : If there are plugins suggested for your project, they will be displayed on top of the plugin list, in the Suggested section.

Custom plugin repositories
By default, PyCharm is configured to use plugins from JetBrains Marketplace. This is a public repository where everyone can host their plugins. However, if you develop plugins for internal use only, you can set up a custom plugin repository for them.
For more information about setting up a custom plugin repository, see the IntelliJ Platform SDK documentation.
Once you set up your plugin repository, add it to PyCharm:
Add custom repositories

- Press Control+Alt+S to open the IDE settings and then select Plugins .
- On the Plugins page, click and select Manage Plugin Repositories… .
- In the Custom Plugin Repositories dialog, click and specify your repository URL. It must point to the location of the XML file that describes your plugin, for example, updatePlugins.xml . The file can be on the same server as your custom plugins, or on a dedicated one.
- Click OK in the Custom Plugin Repositories dialog to save the list of plugin repositories.
- Click OK in the Settings dialog to apply the changes.
When you search for plugins, PyCharm will show you results both from default JetBrains Marketplace and any custom repositories that you specify. To browse only a certain custom plugin repository, type repository: followed by the URL of the repository in the search field on the Marketplace tab of the Plugins page. For example:
repository:http://plugins.example.com:8080/updatePlugins.xml myPlugin
Alternatively, you can add your custom plugin repositories using the idea.plugin.hosts property:
- Go to Help | Edit Custom Properties .
- Add the idea.plugin.hosts property to the platform properties file and specify the URL of the XML file that describes your plugin. For example:
idea.plugin.hosts="http://plugins.example.com:8080/updatePlugins.xml"
You may want to replace default JetBrains Marketplace with your custom plugin repository. This can be helpful if you want only your custom repository plugins to be available from PyCharm.
Replace the default plugin repository
- Go to Help | Edit Custom Properties .
- Add the idea.plugins.host property to the platform properties file and specify the URL of the application that can properly handle requests from PyCharm, that is, act as the default plugin repository application instead of JetBrains Marketplace. In particular, it should handle the following requests:
- Get the list of plugins
- Download the latest plugin update
- Restart PyCharm.
If you replace the default plugin repository, the search field on the Marketplace tab of the Plugins dialog will browse only the plugins in the new default repository and any custom repositories that you add.
Productivity tips
Filter and sort search results
- Type a forward slash / in the search string to see options for filtering and sorting search results. For example, you can add the following options to your search string to list only language-related plugins and sort them alphabetically by name:
Как PyCharm обновить, чтобы он юзал Python 3.10

здравствуйте Python обновил до 3.10, подскажите как PyCharm обновить, чтобы он юзал Python 3.10?
спасибо
прежде че спросить гуглил, то что сказано как часто бывает не совпадает.
как я понял в окне Add Python Interpreter в поле выбора Base interpreter я выбрал версию
Python 3.10 а как далее действовать?
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
Ответы с готовыми решениями:

Как правильно установить на linux python 3.9, чтобы обновить pip
здравствуйте всем. Я перешел на linux. Через терминал вывожу версии python. .
Как поставить Python 3.8.0 в pyCharm
OC : Ubuntu 19.10 "Eoan Ermine" При вводе в терминал (системный) python3 -V: >> Python 3.8.0 .
Python как создать модуль в программе pycharm
Учу пайтон по учебнику и там дошел до модулей и остановился. Не понимаю как создать файл где его.
PyCharm обновить pip Areostar
При создании проекта в PyCharm создаётся и окружения разработка( в том числе и pip). тоесть можно.

Как обновить python в виртуальной среде?
Доброго времени суток! Подскажите как корректно обновить Python 2.7.3 в среде virtualenv до 3.2.
Автоматизируй это!

7102 / 4606 / 1214
Регистрация: 30.03.2015
Сообщений: 13,216
Записей в блоге: 29
а далее он будет использовать то что ты выбрал. Если там реально питон 3.10 то его.
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
так по закону жанра надо подтвердить мой выбор, а кнопка Ок НЕ активна
Am I evil? Yes, I am!


17052 / 9999 / 2763
Регистрация: 21.10.2017
Сообщений: 21,960
По закону жанра нужно указать куда ты его поставил
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
Сообщение от iSmokeJC 
По закону жанра нужно указать куда ты его поставил
так я это и сделал, выбрав из поля выбора
Am I evil? Yes, I am!


17052 / 9999 / 2763
Регистрация: 21.10.2017
Сообщений: 21,960
Не из поля выбора, а указать где он лежит
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
ну тогда сначала
PyCharm открыть
меню File-Settings открыть
поле выбора Python Interpreter правее его кнопочка со звёздочкой, там нажимаю Add и попадаю в окно
Сообщение от Ципихович Эндрю 
Add Python Interpreter
Сообщение от iSmokeJC 
Не из поля выбора, а указать где он лежит
можно сделать?
Am I evil? Yes, I am!


17052 / 9999 / 2763
Регистрация: 21.10.2017
Сообщений: 21,960
дОжили.
Кнопочку "обзор" нажать

1355 / 652 / 207
Регистрация: 23.03.2014
Сообщений: 3,057

Ципихович Эндрю, Вам сюда:
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
что-то забыл подвох, искомый файл находится:
C:\Users\q8902\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.10
но не находит, если
Сообщение от iSmokeJC 
Кнопочку "обзор" нажать
нет AppData в папке q8902
понял, что возможно PyCharm нужно открыть в режиме администратора, сделал это и не помогло
Am I evil? Yes, I am!


17052 / 9999 / 2763
Регистрация: 21.10.2017
Сообщений: 21,960
Ципихович Эндрю, ты в первый раз за компьютером? Понятие скрытых папок известно?
Сообщение от Ципихович Эндрю 
Windows\Start Menu\Programs
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
Сообщение от iSmokeJC 
Понятие скрытых папок известно
конечно, оно установлено как показывать, он же в проводнике показывает, а в PyCharm не показывает
Am I evil? Yes, I am!


17052 / 9999 / 2763
Регистрация: 21.10.2017
Сообщений: 21,960
Сообщение от Ципихович Эндрю 
не находит
Конечно не находит. В StartMenu - то. Что там искать? Ярлык?
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
Сообщение от Ципихович Эндрю 
нет AppData в папке q8902
я то ищу
C:\Users\q8902\AppData\Local\Programs\Python\Python310
а не ярлык
На этом мои полномочия всё, окончены. Это край уже, вилы.
| Меню пользователя @ iSmokeJC |
Вас троллят господа :rofl:
| Меню пользователя @ eaa |
| Читать блог |
eaa, если бы.
| Меню пользователя @ Fudthhh |
| Читать блог |
eaa, я тоже постоянно на это надеюсь, но каждый раз новая тема хоронит мою веру в человечество
| Меню пользователя @ Welemir1 |
| Читать блог |
1550 / 512 / 65
Регистрация: 10.04.2009
Сообщений: 8,562
сделал, как?
как делают киборги, я про то что другому не смогу объяснить как
смущало то что в поле выбора Python Interpreter находится:
Python 3.9 (2) C:\Users\q8902\AppData\Local\Programs\Python\Python310\python.exe
и цвет разный и упоминается 3.9 и 3.10
проехали.
затевалось, чтобы опробовать
match/case в Python 3.10
1 2 3 4 5 6 7 8 9 10 11 12 13
def http_error(value): match value: case 400: print("Bad request") case 401|403|404: print("Not allowed") case 418: print("I'm a teapot") case _: print("Something else") value = 4006 http_error(value)
где буду применять)-время покажет
вопрос в том, что весь код в красного цвета ~
что делать)) плевать глаза зарыл и нажал Run - работает . старею-ранее бы не нажал))
это теперь меня всегда будет радовать
код в красного цвета ~
Добавлено через 1 минуту
только пост опубликовал тут же позвонили с 1-го канала с передачи "Время покажет" сделали коммерческое предложение.
думаю))
Добавлено через 1 минуту
Сообщение от Ципихович Эндрю 