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

Adding packages, deleting packages, upgrading packages, pip, devpi

PyCharm provides methods for installing, uninstalling, and upgrading Python packages for a particular Python interpreter. It means that each project has its own set of packages, which is considered a best practice for Python dependency management. By default, PyCharm uses pip to manage project packages. For Conda environments you can use the conda package manager.

In PyCharm, you can preview and manage packages in the Python Packages tool window and in the Python interpreter Settings.

The Python Packages tool window provides the quickest and neat way to preview and install packages for the currently selected Python interpreter. This window is enabled by default, and you can find it in the lower group of the tool windows. At any time you can open it using the main menu: .

The Python Packages tool window shows installed packages and the packages available in the PyPI and Conda package repositories. Use the Search field to filter out the list of the available packages.

Python Packages tool window

You can preview package documentation in the documentation area, or you can click the Documentation link and open the corresponding resource in a browser.

To delete an installed package, click More actions for an installed package in the upper-right corner of the Python Package tool window.

Install packages from repositories

  1. Start typing the package name in the Search field of the Python Package tool window. You should be able to see the number of the matching packages.

    Install a package in the Python Packages tool window

  2. Expand the list of the available versions in the upper-right corner of the tool window. Select the required version or keep it the latest.

  3. Click the Install with pip or Install with conda button next to the version list. Once PyCharm notifies you about successful installation, you should see the package in the list of the installed packages.

    Installed package

  4. If needed, click repository settings and provide a path to any custom repository you want to install from.

Manage package repositories

  1. To specify a custom repository, including devpi or PyPi, click Custom repositories on the Python Packages toolbar.

    The icon to set custom repoitories

  2. In the Python Packages Repositories dialog, click Add a repository to add a new repository. If no authorization is required, for example, in the case of a local repository, type the target URL and click OK.

    Adding a Python repository: No Authorization

  3. If you want to install Python packages from a repository that requires HTTP authorization, click Basic HTTP and type the repository URL and the login credentials. Click OK to complete the task.

    Adding a Python repository: Basic HTTP Authorization

Once the repository is added, it appears in the list of the repositories in the Python Packages tool window.

Install packages from Version Control System

  1. Click the Add Package link on the Python Packages toolbar and select From Version Control.

  2. Specify a path to the target git repository. Refer to pip documentation for more information about supported path formats.

    Install from Version Control

  3. Select Install as editable (-e) if you want to install a project in editable mode (for example, setuptools develop mode).

Install packages from a local machine

  1. Click the Add Package link on the Python Packages toolbar and select From Disk.

    Install package from disc

  2. Specify a path to the package directory or an archive (zip or whl).

Manage packages in the Python interpreter settings

To manage Python packages for the Python interpreter, select the page in the project Settings or select Interpreter Settings in the Python Interpreter selector on the Status bar.

Viewing the installed Python packages

If you select a Python interpreter with the configured Conda environment, the Use Conda Package Manager toggle appears in the packages area toolbar.

Using the Conda package manager

Use this toggle to install and upgrade packages from Conda package repositories. This toggle is enabled by default for Conda environments.

Install a package

  1. Click the Install a package button on the package toolbar.

    Add a package

  2. In the Available Packages dialog that opens, preview the list of the available packages and type the name of the package to install in the Search field.

    Show available packages

  3. If required, select the following checkboxes:

    • Specify version: if this checkbox is selected, you can select the desired version from the list of available versions. By default, the latest version is taken.

    • Options: If this checkbox is selected, you can type the pip install command-line options in the text field.

    • Install to user’s site packages directory <path>: If this checkbox is left cleared (by default), then the packages will be installed into the current interpreter package directory. If the checkbox is selected, the packages will be installed into the specified directory. This option is not available for Conda environments.

  4. Select the target package and click Install Package.

Uninstall a package

  1. In the list of the packages, select the packages to be removed.

  2. Click Uninstall (Uninstall a package). The selected packages are removed from the interpreter.

PyCharm smartly tracks the status of packages and recognizes outdated versions by showing the currently installed package version (column Version), and the latest available version (column Latest version). When a newer version of a package is detected, PyCharm marks it with the arrow sign New version is available and suggests to upgrade it.

By default, the Latest version column shows only stable versions of the packages. If you want to extend the scope of the latest available versions to any pre-release versions (such as beta or release candidate), click Show early releases.

Show latest available versions including beta and release candidates

Upgrade a package

  1. In the list of the packages, select the package to be upgraded.

  2. Click Upgrade ( Upgrade).

    Upgrading Python packages

    The selected packages are upgraded to the latest available versions.

  3. Click OK to complete upgrading.

If you’re accustomed to installing packages from the command line, you can proceed with your workflow using the Terminal.

Reuse installed packages

  • Create a new virtual environment and install packages that you want to be used in other projects. Then you can specify this virtual environment as a Python interpreter for the target project and all the needed packages will be available.

  • In the Terminal window execute the following command:

    pip freeze > requirements.txt

    Then add the created requirements.txt file to the target project and PyCharm will prompt you to install the packages listed in the file.

Last modified: 11 January 2023

I have python 3.6 in my venv on PyCharm. However, I want to change that to Python 3.8. I have already installed 3.8, so how do I change my venv python version?

I am on windows 10.

Changing the version on the project intepreter settings seems to run using the new venv not my existing venv with all the packages I have installed. Attempting to add a new intepreter also results in the «OK» button being greyed out, possibly due to the current venv being not empty.

lmiguelvargasf's user avatar

asked Jul 13, 2020 at 4:19

weasel's user avatar

0

You need to create a new virtual environment with the interpreter which version is 3.8.

  1. Go to Settings => Project => Python Interpreter

enter image description here

  1. Click on the vertical 3 dots, and click on «Add».

enter image description here

  1. Select Virtualenv Environment => New Environment

enter image description here

  1. Choose as base interpreter the one which version is 3.8 (the one you just installed)

enter image description here

  1. Click on «OK» => «OK»

  2. Once you have set the new interpreter, PyCharm will warn you that you need update some dependencies based on your requirements.txt file or, in this case, Pipfile.lock (I am using pipenv for this project)

enter image description here

That’s it!

answered Jul 13, 2020 at 4:48

lmiguelvargasf's user avatar

lmiguelvargasflmiguelvargasf

59k44 gold badges216 silver badges220 bronze badges

2

In pycharm you can do further steps:

  1. Go in File—>Settings—>Python Interpreter
  2. Select different python environment if already available from the drop down, If not click on «Add».
  3. Select New Environment option, then in Base interpreter you can select 3.8 version

answered Jul 13, 2020 at 4:32

Ruta Deshpande's user avatar

2

I guess most of us are aware of the fact that syntax in Python 2.x series are a little different than the Python 3.x series. Obviously, there can be a situation where you have to change the interpreter version for the program run. Especially when your IDE is Pycharm everything is quite easy. If you are looking for how to change the python version in PyCharm? I think this article is just for you.

Step 1 :

  1. Check if you already have that version interpreter of Python pre-installed. Suppose if you have Python 3.7 but you need a virtual env in pycharm for 2.7 base interpreter. In order to check it, Go to –

File -> Settings -> Project ->Project Interpreter 

How to change python version in pycharm step 1

how to change python version in pycharm step 1

Refer to the above diagram, Here click on the drop-down of the Project Interpreter row ( Where the No Interpreter is mention). It will show you the name and path of the Interpreter which are already configured. All you need to select one of them if they are available at Run time Configuration in Pycharm ( Hint Run -> Edit Configurations).

Step 2:

In case the desire interpreter is not available. Go and install the required from https://www.python.org/downloads/
There is a dedicated tutorial on how to install python in you Opearting System. Follow the steps to install it.

Python version download.

Step 3 :

Set the path in the system variable. Especially while installing from Python.org window installer, It will show you the option to set the path automatically with the installation. In case you do not opt for it. Go and manually add it.

Step 4 :

Now once you have done to step 3, Restart the Pycharm and select the desired interpreter in Run -> Edit Configurations inside Pycharm IDE. Now you may use this global python interpreter for the project. But in case you want to create the virtual env based on this interpreter. You may go to File -> Settings -> Project ->Project Interpreter and click on the setting icon and choose to add.

how to change python version in pycharm step 4.

How to change python version in pycharm step 4.

Refer to the above image and change the base Interpreter here. Here you may choose the one which is the newest you installed. Here you may choose the conda env as the Interpreter also. It is just to make sure that pycharm is fully configurable with a variety of Interpreters.

How to downgrade python version in pycharm

In the above steps you have understood how to the edit configuration for the python interpreter. You can easily select the version of the python you want to to use or downgrade using it. This way you can easily downgrade python version in pycharm.

You can download the pycharm IDE from here.

pycharm

pycharm

Conclusion –

This is a generic way to deal with python versioning with pycharm.  It will remain same in most of the platform or operating system like mac, Linux or Windows etc. Now next to it is  pycharm exploration. Just like, there are some other important configurations with pycharm like increasing memory in Pycharm and Installing packages in pycharm which we understand as next step.

Thanks 

Data Science Learner Team

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

We respect your privacy and take protecting it seriously

Thank you for signup. A Confirmation Email has been sent to your Email Address.

Something went wrong.

  1. HowTo
  2. Python How-To’s
  3. Change Python Version in PyCharm
Change Python Version in PyCharm

Python, like every other programming language, is maintained and updated regularly. New features are added, and changes are made with every update. Due to this, a code running on a specific Python version may not work with other versions.

PyCharm is a widely used Python IDE. We can configure Python Interpreter in the IDE to switch Python version. This tutorial will show how to achieve this.

First, we need to ensure the interpreter for the version we require is installed on PyCharm. Then, we need to select the Settings option from the File menu. From there, we need to select the Preferences option. In this, we need to select Project Interpreter. After selecting this, we will find the Python Interpreter option, and we can select the required version of the interpreter and apply the changes.

We can also change this by selecting the Edit Configurations option in the Run menu and selecting the required version in Python Interpreter.

In Pycharm 2019.1+ onwards, a new feature was added in the status bar. This feature included the version of the interpreter and seeing the version being used. We can click on this to quickly switch between different versions. If the status bar is not visible, we can use the Ctrl+Shift+A combination for Windows or the ++A for Mac.

Manav Narula avatar
Manav Narula avatar

Manav is a IT Professional who has a lot of experience as a core developer in many live projects. He is an avid learner who enjoys learning new things and sharing his findings whenever possible.

LinkedIn

Ezoic

Содержание

  1. Как обновить версию Python в PyCharm?
  2. Как изменить версию Python Windows?
  3. Как узнать версию Python в PyCharm?
  4. Как обновить Python до последней версии Windows?
  5. Как выбрать интерпретатор для PyCharm?
  6. Как обновить Python через cmd?
  7. Как проверить установлен ли Python на Windows?
  8. Как узнать версию Python в коде?
  9. Как проверить версию Пайтона?
  10. Как обновить Python на Linux?
  11. Как обновить библиотеку в Python?
  12. Как обновить PIP Python?
  13. Как установить pip install?
  14. Как установить Python на PyCharm?
  15. Как запустить код в PyCharm?

Как обновить версию Python в PyCharm?

Как изменить версию Python Windows?

Как узнать версию Python в PyCharm?

Как обновить Python до последней версии Windows?

xz (патч), просто перейдите на страницу загрузок Python, получите последнюю версию и начните установку. Поскольку на вашем компьютере уже установлен Python, установщик предложит вам «Обновить сейчас». Нажмите на эту кнопку, и она заменит существующую версию новой.

Как выбрать интерпретатор для PyCharm?

Как обновить Python через cmd?

Первоначально запускаем cmd.exe — интерпретатор командной строки. После запуска, вводим команду обновления pip для Питона python —m pip install —upgrade pip и жмём Enter. Если на вашем компьютере установлено несколько версий Python, то для каждой нужно отдельно обновлять pip, указывая абсолютный путь.

Как проверить установлен ли Python на Windows?

Если у вас установлен Python, самый простой способ проверить номер версии — ввести «python» в командной строке. Он покажет вам номер версии, и если он работает на 32-битной или 64-битной и другой информации. Для некоторых приложений вы хотели бы иметь последнюю версию, а иногда и нет.

Как узнать версию Python в коде?

Для проверки версии Python, запустите python –version в командной строке (Windows), оболочке (Mac) или терминале (Linux / Ubuntu). Чтобы проверить версию Python в скрипте, запустите import sys, чтобы импортировать модуль, и используйте sys. version, чтобы получить подробную информацию о версии в коде.

Как проверить версию Пайтона?

Узнать, какая версия Python установлена ​​в вашей системе, очень просто, просто введите python –version. Не стесняйтесь оставлять комментарии, если у вас есть какие-либо вопросы.

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

Выполните следующие шаги:

Как обновить библиотеку в Python?

Через командную строку windows выполните команду: pip list —outdated вы получите список устаревших пакетов. Run: pip install [package] —upgrade он обновит [package] и удалит предыдущую версию.

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

Для обновления PIP в Windows нужно открыть Windows Command Prompt, а затем набрать/скопировать туда указанную команду. Обратите внимание, что данный метод сработает только если у вас уже добавлен Python в Windows PATH.

Как установить pip install?

Как установить PIP на Windows.

Как установить Python на PyCharm?

Как установить Python на Windows [Pycharm IDE]

Как запустить код в PyCharm?

Источник

1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

1

29.10.2021, 10:01. Показов 20723. Ответов 22


здравствуйте Python обновил до 3.10, подскажите как PyCharm обновить, чтобы он юзал Python 3.10?
спасибо
прежде че спросить гуглил, то что сказано как часто бывает не совпадает………
как я понял в окне Add Python Interpreter в поле выбора Base interpreter я выбрал версию
Python 3.10 а как далее действовать?



0



Автоматизируй это!

Эксперт Python

6466 / 4162 / 1136

Регистрация: 30.03.2015

Сообщений: 12,277

Записей в блоге: 29

29.10.2021, 10:25

2

а далее он будет использовать то что ты выбрал. Если там реально питон 3.10 то его.



0



1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 10:29

 [ТС]

3

так по закону жанра надо подтвердить мой выбор, а кнопка Ок НЕ активна



0



Йуный падаван

Эксперт PythonЭксперт Java

13994 / 8193 / 2481

Регистрация: 21.10.2017

Сообщений: 19,682

29.10.2021, 10:53

4

По закону жанра нужно указать куда ты его поставил



0



1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 11:00

 [ТС]

5

Цитата
Сообщение от iSmokeJC
Посмотреть сообщение

По закону жанра нужно указать куда ты его поставил

так я это и сделал, выбрав из поля выбора



0



Йуный падаван

Эксперт PythonЭксперт Java

13994 / 8193 / 2481

Регистрация: 21.10.2017

Сообщений: 19,682

29.10.2021, 11:00

6

Не из поля выбора, а указать где он лежит



0



1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 11:07

 [ТС]

7

ну тогда сначала
PyCharm открыть
меню File-Settings открыть
поле выбора Python Interpreter правее его кнопочка со звёздочкой, там нажимаю Add и попадаю в окно

Цитата
Сообщение от Ципихович Эндрю
Посмотреть сообщение

Add Python Interpreter

и где там

Цитата
Сообщение от iSmokeJC
Посмотреть сообщение

Не из поля выбора, а указать где он лежит

можно сделать?



0



Йуный падаван

Эксперт PythonЭксперт Java

13994 / 8193 / 2481

Регистрация: 21.10.2017

Сообщений: 19,682

29.10.2021, 11:22

8

дОжили…
Кнопочку «обзор» нажать



0



Модератор

Эксперт Python

1351 / 648 / 207

Регистрация: 23.03.2014

Сообщений: 3,053

29.10.2021, 12:02

9

Ципихович Эндрю, Вам сюда:



1



1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 12:04

 [ТС]

10

что-то забыл подвох, искомый файл находится:
C:Usersq8902AppDataRoamingMicrosoftWindowsS tart MenuProgramsPython 3.10
но не находит, если

Цитата
Сообщение от iSmokeJC
Посмотреть сообщение

Кнопочку «обзор» нажать

нет AppData в папке q8902
понял, что возможно PyCharm нужно открыть в режиме администратора, сделал это и не помогло



0



Йуный падаван

Эксперт PythonЭксперт Java

13994 / 8193 / 2481

Регистрация: 21.10.2017

Сообщений: 19,682

29.10.2021, 12:07

11

Ципихович Эндрю, ты в первый раз за компьютером? Понятие скрытых папок известно?

Цитата
Сообщение от Ципихович Эндрю
Посмотреть сообщение

WindowsStart MenuPrograms



0



1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 12:13

 [ТС]

12

Цитата
Сообщение от iSmokeJC
Посмотреть сообщение

Понятие скрытых папок известно

конечно, оно установлено как показывать, он же в проводнике показывает, а в PyCharm не показывает



0



Йуный падаван

Эксперт PythonЭксперт Java

13994 / 8193 / 2481

Регистрация: 21.10.2017

Сообщений: 19,682

29.10.2021, 12:15

13

Цитата
Сообщение от Ципихович Эндрю
Посмотреть сообщение

не находит

Конечно не находит. В StartMenu — то. Что там искать? Ярлык?



0



1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 12:22

 [ТС]

14

Цитата
Сообщение от Ципихович Эндрю
Посмотреть сообщение

нет AppData в папке q8902

я то ищу
C:Usersq8902AppDataLocalProgramsPythonPytho n310
а не ярлык



0



iSmokeJC

29.10.2021, 12:24

Не по теме:

На этом мои полномочия всё, окончены. Это край уже, вилы…



0



eaa

29.10.2021, 12:34

Не по теме:

Вас троллят господа :rofl:



0



Fudthhh

29.10.2021, 13:04

Не по теме:

eaa, если бы…



0



Welemir1

29.10.2021, 13:52

Не по теме:

eaa, я тоже постоянно на это надеюсь, но каждый раз новая тема хоронит мою веру в человечество



0



Ципихович Эндрю

1483 / 457 / 52

Регистрация: 10.04.2009

Сообщений: 7,881

29.10.2021, 17:56

 [ТС]

19

сделал, как?
как делают киборги, я про то что другому не смогу объяснить как
смущало то что в поле выбора Python Interpreter находится:
Python 3.9 (2) C:Usersq8902AppDataLocalProgramsPythonPytho n310python.exe
и цвет разный и упоминается 3.9 и 3.10
проехали………
затевалось, чтобы опробовать
match/case в Python 3.10

Python
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 минуту

Цитата
Сообщение от Ципихович Эндрю
Посмотреть сообщение

pytho n.exe

что это? я писал вместе…….



0



1180 / 756 / 277

Регистрация: 05.09.2021

Сообщений: 1,772

29.10.2021, 18:10

20

Ципихович Эндрю, у тебя все нормально, это к вопросу о способности задать версию интерпретатора и в целом, зачем это все, чтобы что?



0



Install, uninstall, and upgrade packages

PyCharm provides methods for installing, uninstalling, and upgrading Python packages for a particular Python interpreter. By default, PyCharm uses pip to manage project packages. For Conda environments you can use the conda package manager.

In PyCharm, you can preview and manage packages in the Python Packages tool window and in the Python interpreter Settings/Preferences .

Manage packages in the Python Packages tool window

This tool window is available in PyCharm 2021.1 and later

The Python Packages tool window provides the quickest and neat way to preview and install packages for the currently selected Python interpreter. This window is enabled by default, and you can find it in the lower group of the tool windows. At any time you can open it using the main menu: View | Tool Windows | Python Packages .

The Python Packages tool window shows installed packages and the packages available in the PyPI repository. Use the Search field to filter out the list of the available packages.

Python Packages tool window

You can preview package documentation in the documentation area, or you can click the Documentation link and open the corresponding resource in a browser.

To delete an installed package, click in the upper-right corner of the Python Package tool window.

Install packages from repositories

Start typing the package name in the Search field of the Python Package tool window. You should be able to see the number of the matching packages.

Expand the list of the available versions in the upper-right corner of the tool window. Select the required version or keep it the latest.

Click the Install button next to the version list. Once PyCharm notifies you about successful installation, you should see the package in the list of the installed packages.

If needed, click and provide a path to any custom repository you want to install from.

Manage package repositories

To specify a custom repository, including devpi or PyPi, click on the Python Packages toolbar.

Add a repository

In the Python Packages Repositories dialog, click to add a new repository. If no authorization is required, for example, in the case of a local repository, type the target URL and click OK .

If you want to install Python packages from a repository that requires HTTP authorization, click Basic HTTP and type the repository URL and the login credentials. Click OK to complete the task.

Once the repository is added, it appears in the list of the repositories in the Python Packages tool window.

Install packages from Version Control System

Click the Add Package link on the Python Packages toolbar and select From Version Control .

Install from Version Control

Specify a path to the target git repository. Refer to pip documentation for more information about supported path formats.

Select Install as editable (-e) if you want to install a project in editable mode (for example, setuptools develop mode ).

Install packages from a local machine

Click the Add Package link on the Python Packages toolbar and select From Disk .

Specify a path to the package directory or an archive ( zip or whl ).

Manage packages in the Python interpreter settings

To manage Python packages for the Python interpreter, select the Python Interpreter page in the project Settings/Preferences or select Interpreter Settings in the Python Interpreter selector on the Status bar .

Installing a Python package

If you select a Python interpreter with the configured Conda environment, the Use Conda Package Manager toggle appears in the packages area toolbar.

Using the Conda package manager

Use this toggle to manage packages from the Conda environment repository. This toggle is enabled by default for Conda environments.

Install a package

Click the button on the package toolbar.

In the Available Packages dialog that opens, preview the list of the available packages and type the name of the package to install in the Search field.

If required, select the following checkboxes:

Specify version : if this checkbox is selected, you can select the desired version from the list of available versions. By default, the latest version is taken.

Options : If this checkbox is selected, you can type the pip install command-line options in the text field.

Install to user’s site packages directory <path> : If this checkbox is left cleared (by default), then the packages will be installed into the current interpreter package directory. If the checkbox is selected, the packages will be installed into the specified directory. This option is not available for Conda environments.

Select the target package and click Install Package .

If you’ve got any or error messages, consult the Troubleshooting guide for a solution.

Uninstall a package

In the list of the packages, select the packages to be removed.

Click Uninstall ( ). The selected packages are removed from disk.

PyCharm smartly tracks the status of packages and recognizes outdated versions by showing the number of the currently installed package version (column Version ), and the latest available version (column Latest version ). When a newer version of a package is detected, PyCharm marks it with the arrow sign and suggests to upgrade it.

By default, the Latest version column shows only stable versions of the packages. If you want to extend the scope of the latest available versions to any pre-release versions (such as beta or release candidate ), click Show early releases .

Show latest available versions including beta and release candidates

Upgrade a package

In the list of the packages, select the package to be upgraded.

Click Upgrade ( ).

Upgrading Python packages

The selected packages are upgraded to the latest available versions.

Click OK to complete upgrading.

You can upgrade several packages at once. Hold Cmd (macOS) or Ctrl on (Unix or Windows), left-click to select several items in the list of packages, and then click Upgrade .

If you’re accustomed to installing packages from the commands line, you can proceed with your workflow using the Terminal.

Reuse installed packages

Create a new virtual environment and install packages that you want to be used in other projects. Then you can specify this virtual environment as a Python interpreter for the target project and all the needed packages will be available.

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 ?

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.

If its still not there, you can also press the settings cog button enter image description here 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.

Как изменить версию Python в PyCharm

  • 1 вам просто нужно изменить интерпретатор Python, используемый для проекта. Редактировать конфигурации / интерпретатор Python.
  • 1 . и установите Python 3.6, если это еще не сделано

Как я могу обновить pip в PyCharm, когда у меня есть две версии python?

enter image description here

  1. Открыть настройки проекта (Файл> Настройки . ) (настройки на Mac)
  2. Проект> Переводчик проекта
  3. Нажмите кнопку +
  4. Введите «pip» в верхнем окне поиска
  5. В правом нижнем углу выберите «указать версию»
  6. Выберите вашу версию и нажмите Установить пакет

image showing the screen

Чтобы обновить любой пакет до последней версии в PyCharm, проще всего использовать кнопку «Обновить».
Когда для любого пакета доступна более новая версия, он отображается в столбце «Последние» с горизонтальной синей стрелкой .
Любой такой пакет можно выбрать и нажать кнопку со стрелкой «Вертикально» с правой стороны (как вы можете видеть на скриншоте ниже), чтобы обновить этот пакет до последней версии . enter image description here

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 ?

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.

If its still not there, you can also press the settings cog button enter image description hereon 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.

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

На чтение 2 мин Просмотров 38.5к. Опубликовано 07.09.2020

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

Содержание

  1. Введение
  2. Узнаем текущую версию
  3. Скачиваем последнюю версию
  4. Установка
  5. Проверка установки
  6. Заключение

Введение

Технологии развиваются быстро, а языки программирования — это основной драйвер развития. Нередко выходят корректирующие релизы исправляющие найденные ошибки или версии с расширением функционала. 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 года. Люблю создавать контент, который помогает людям понять сложные вещи. Не представляю жизнь без непрерывного цикла обучения, спорта и чувства юмора.

Ссылка на мой github есть в шапке. Залетай.

1 answer to this question.

Install Python 3.7(latest version) from the following official website: https://www.python.org/downloads/

  1. Open the Add Python Interpreter dialog(ctrl+alt+s)
  2. In the left-hand pane of the Add Python Interpreter dialog box, select System Interpreter.
  3. In the Interpreter field, type the fully-qualified path to the required interpreter executable
  4. Click on OK to complete task

Hope it helps!!

If you need to know more about Python, It’s recommended to join Python course today.

Thanks!






answered

Aug 5, 2019


by
Varsha



Related Questions In Python

Понравилась статья? Поделить с друзьями:
  • Как обновить windows 10 pro до windows 10 ltsc
  • Как обновить windows 10 1709 до 1909
  • Как обновить punto switcher для windows 10
  • Как обновить windows 10 pro до 21h2
  • Как обновить powershell на windows server 2008 r2