PyCharm 2021.1 Help

Python Interpreter

File | Settings | Project | Python Interpreter for Windows and Linux
PyCharm | Preferences | Project | Python Interpreter for macOS
Ctrl+Alt+S
Settings

When you configure a Python interpreter, you need to specify the path to the Python executable in your system. So, before configuring a Python interpreter, you need to ensure that you've downloaded Python and installed it in your system and you're aware of a path to it. You can create several Python interpreters based on the same Python executable. This is helpful when you need to create different virtual environments for developing different types of applications. For example, you can create one virtual environment based on Python 3.6 to develop Django applications and another virtual environment based on the same Python 3.6 to work with scientific libraries.

Use this page to configure and assign a Python interpreter for each of the projects opened in the same window.

Interpreters

ItemDescription
Python Interpreter

For the project, selected in the Projects pane, choose Python interpreter from the list.

The interpreters in the list are configured using the Settings button, as described in the section Viewing list of available Python interpreters.

Path mappings

This field is only available for the remote interpreters!

This field shows read-only mappings between the desired local path and the corresponding remote path. PyCharm allows configuring paths by clicking the Browse button next to the field. In the dialog that opens, click Add or Remove buttons to change the path mappings as desired.

Configure interpreter

Click this button to configure an interpreter:

Add an interpreter or show the list of available interpreters

From the list, choose the one to be added:

Packages

This table shows the packages installed locally.

ItemDescription
PackageThis column shows the list of packages residing in the accessible remote repositories. For each package you can view its name and repository. Additional information is displayed at the tooltip.
VersionThis column shows the currently installed version of a package.
LatestThis column shows the latest available versions of the packages. If a version is outdated and the package can be upgraded, Upgrade mark appears in this column.

Packages toolbar

ItemTooltip and shortcutDescription
Install a package a packageInstall
Alt+Insert
Click this button to install a new package from the accessible remote repositories.
Uninstall a packageUninstall
Alt+Delete
Click this button to uninstall the selected local package.
UpgradeUpgradeClick this button to install the latest available version of a package. This button is only available for the outdated package versions.
UpgradeShow earlier releasesClick this button if you want to extend the scope of the latest available versions to any pre-release versions (such as beta or release candidate).
Using the Conda package managerUse Conda Package ManagerThis button appears for Conda interpreters ONLY!
If this button is pressed, the Conda package manager is used. If this button is released, than pip is used.
Last modified: 06 July 2021