Перейти к содержимому

Как обновить python в pycharm

  • автор:

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

Toolbox App menu icon

  1. Open the Toolbox App and click the Toolbox App menu icon in the top right corner.
  2. 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

  1. Open the Toolbox App, click next to the relevant IDE instance, and select Settings .
  2. 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.

Platform and Plugin Updates

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 base interpreter в существующем окружении в pycharm?

Есть окружение, созданное автоматически pycharm’ом, в нем используется интерпретатор python версии 3.8 32bit, который расположен в папке Scripts\python.exe. При попытке воспользоваться новым интерпретатором python версии 3.9 64bit, pycharm вынуждает создать новое окружение, что очень не хотелось бы: во-первых, необходимо устанавливать библиотеки заново, во-вторых, размножать эти окружения, поддерживать обновления библиотек в каждом из этих окружений, и занимать кучу места на диске. Есть ли способ изменить версию интерпретатора в существующем окружении? если нет, то почему? введите сюда описание изображения введите сюда описание изображения

Отслеживать
Никита Солоницын
задан 3 ноя 2020 в 21:15
Никита Солоницын Никита Солоницын
41 1 1 серебряный знак 6 6 бронзовых знаков

2 ответа 2

Сортировка: Сброс на вариант по умолчанию

Если коротко, то нельзя поменять версию интерпретатора в существующем virtualenv-е.

Во-первых, пакеты могут зависеть от версии интерпретатора. Во-вторых, некоторые пакеты компилируемые. Они зависят от заголовочных файлов конкретной версии и линкуются с ней. Замена интерпретатора их сломает.

Так что, даже если бы это было возможно, все равно придется переустанавливать эти пакеты. И, поверьте, лучше сделать окружение с нуля чем иметь кучу трудноуловимых проблем с совместимостью. Тем более что с нуля и не нужно.

Обычно зачем вам может понадобиться работать одновременно с несколькими версиями — это тестирование того, что приложение поддерживает их обе. Но для этого есть инструмент получше — tox.

Отслеживать
ответ дан 3 ноя 2020 в 22:21
Roman-Stop RU aggression in UA Roman-Stop RU aggression in UA
23.4k 1 1 золотой знак 18 18 серебряных знаков 29 29 бронзовых знаков

Нашел ответ=) Подход venv в Python 3 обладает преимуществом, которое вынуждает вас использовать определенную версию интерпретатора Python 3, который будет использован для создания виртуальной среды. Таким образом, вы избегаете недоразумений при выяснении, какая инсталляция Python базируется в новой виртуальной среде. [https://python-scripts.com/virtualenv][1]

Отслеживать
ответ дан 3 ноя 2020 в 21:31
Никита Солоницын Никита Солоницын
41 1 1 серебряный знак 6 6 бронзовых знаков
Ничего не понятно.
3 ноя 2020 в 21:51

  • python
  • pycharm
    Важное на Мете
Похожие

Подписаться на ленту

Лента вопроса

Для подписки на ленту скопируйте и вставьте эту ссылку в вашу программу для чтения RSS.

Дизайн сайта / логотип © 2024 Stack Exchange Inc; пользовательские материалы лицензированы в соответствии с CC BY-SA . rev 2024.1.3.2953

Нажимая «Принять все файлы cookie» вы соглашаетесь, что Stack Exchange может хранить файлы cookie на вашем устройстве и раскрывать информацию в соответствии с нашей Политикой в отношении файлов cookie.

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:

How to change version of Python in PyCharm

I wanted to make Discord bot (should I even write this here), but it’s said that I need Python 3.6, not Python 3.7 that I have. How can I change from Python 3.7 to Python 3.6 to make something like that ?

184k 19 19 gold badges 136 136 silver badges 253 253 bronze badges
asked Aug 26, 2018 at 23:20
929 2 2 gold badges 8 8 silver badges 16 16 bronze badges

you just need to change the Python Interpreter used for the project. Edit configurations/Python interpreter.

Aug 26, 2018 at 23:22
. and install Python 3.6 if it’s not already done
Aug 26, 2018 at 23:25
how does one downgrade pycharm version?
Aug 17, 2022 at 13:49

2 Answers 2

First make sure you have Python 3.6 installed.

Then Go to File > Settings > Project:* > Project Interpreter , then select your interpreter under the Project Interpreter drop down.

enter image description here

If its still not there, you can also press the settings cog button on the right side of the drop down and select add . Select System Interpreter from the left side, then select the interpreter from there. When you press ok , the interpreter will be available to be selected.

answered Aug 27, 2018 at 0:29
964 8 8 silver badges 19 19 bronze badges
how does one downgrade pycharm version?
Aug 17, 2022 at 13:49

File---settings---project:xxx---project Interpreter--(choose your dir) 

in the right have a project Interpreter,choose your python

238k 19 19 gold badges 177 177 silver badges 253 253 bronze badges
answered Aug 26, 2018 at 23:39
user10277522 user10277522
24 1 1 bronze badge
When i go like that, there is only Python 3.7 for every project I have made up until now. :/
Aug 26, 2018 at 23:41

Well, yes, you’ve made a Virtualenv for every project, then, which is good practice. You need to install Python 3.6 (outside the IDE) if that’s what you what to use, however Python 3.6 and 3.7 are not vastly different

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

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