Configuring Available Python Interpreters
In this section:
- Configuring Available Python Interpreters
- Configuring Local Python Interpreters
- Configuring Remote Python Interpreters
- Creating Virtual Environment
- Conda Support. Creating Conda Environment
- Adding Existing Virtual Environment
- Installing, Uninstalling and Reloading Interpreter Paths
Overview
The list of Python interpreters, available for the various projects, can include interpreters installed locally or remotely , and the various virtual environments.
Viewing the list of available interpreters
To view the list of available interpreters, do one of the following
- In the Project Interpreter page, click
, and then choose More.
- In the Project Interpreter page, expand the drop-down list of interpreters, and then choose Show all:
Configuring the list of available interpreters
To configure the list of available interpreters, follow these general steps
- Open the Settings/Preferences dialog box, and open the Project Interpreter page.
- In the list of interpreter types, choose the desired option:
Choose More to open the Project Interpreters dialog box, where it is possible to configure the list of the Python interpreters, available on your computer.
Project Interpreters dialog box
The Project Interpreters dialog features the toolbar with the following buttons:
Icon | Tooltip and shortcut | Description |
---|---|---|
![]() | Add Alt+Insert | Click this button to choose the type of interpreter to be added: local, remote interpreter, or virtual environment. |
![]() | Remove Alt+Delete | Click this button to remove the selected interpreter from the list of available interpreters. |
![]() | Edit Enter | Click this button to change the name and path of the selected interpreter. |
![]() | Show virtual environments associated with the other projects | If this button is not pressed, PyCharm shows the virtual environments associated with the current project only. |
![]() | Show paths for the selected interpreter | Click this button to show the list of paths for the selected interpreter. |
Auto-detecting interpreters
It is not necessary to configure all the interpreters or virtual environments. PyCharm can automatically detect them in certain locations. These automatically detected interpreters are denoted in the list by semi-transparent icons:
The ability to automatically detect interpreters depends on the platform. PyCharm looks for the interpreters and virtual environments in the following locations:
Removing interpreters from the list
To remove an interpreter from the list of available interpreters
- In the list of available interpreters, select the one to be deleted.
- Click
.