Install Python if you don’t already have it - you’ll need an interpreter in order to use PyCharm! Be aware that Python 2 and Python 3 are different in terms of syntax - don’t worry, you can load either version in PyCharm when you start a new project. If this is your first time developing in Python, I recommend going with the latest. Python is an easy-to-learn, powerful programming language. It has high-level data structures and a simple but effective approach to object-oriented programming. For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms. Download the latest Python 3 and Python 2 source. For Visual Studio 2015 and earlier, you must manually install one of the interpreters. Visual Studio (all versions) automatically detects each installed Python interpreter and its environment by checking the registry according to PEP 514 - Python registration in the Windows registry.
To develop Python scripts in PyCharm, download and install Python and configure at least one Python interpreter .
If you are a Windows user, we recommend that you install Python for Windows.
Python 2: version 2.7
Python 3: from the version 3.6 up to the version 3.10
The following feature is available as part of Python 3.10 support
The following features are available as part of Python 3.9 support
The following features are available as part of Python 3.8 support
PyCharm integrates the following features of Python 3.7:
PyCharm provides the following features to help working with Python:
Feature | PyCharm Edu | PyCharm Community | PyCharm Professional |
---|---|---|---|
Dedicated project types | |||
Ability to configure local interpreters and virtual environments. | |||
Ability to configure remote and docker-based interpreters. | |||
Python console. | |||
Run/debug configurations for Python | |||
Run/debug configurations for Python remote debug | |||
Code insight, Code inspections, Intention actions, and Code completion | |||
Built-in code formatter and separate set of Python code style settings | Limited to Python, HTML, JSON, and XML | Limited to Python, HTML, JSON, XML, and YAML | |
Find usages in Python code. | |||
Testing frameworks | |||
Quick documentation | |||
Recognizing Python documentation comments | |||
Documentation generators | |||
Configuring Python debugger. | |||
Navigation to the method hierarchy |
File Settings Project Python Interpreter for Windows and Linux
PyCharm Preferences Project Python Interpreter for macOS
Ctrl+Alt+S
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.
Item | Description |
---|---|
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 button, as described in the section Viewing list of available Python interpreters. When PyCharm stops supporting any of the outdated Python versions, the corresponding Python interpreter is marked as unsupported. |
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 next to the field. In the dialog that opens, click or buttons to change the path mappings as desired. |
Click this button to configure an interpreter: From the list, choose the one to be added:
|
One can have multiple available interpreters already configured, but only the one selected becomes the current Python interpreter. If one has, say, two projects opened in the same window, then it is possible to have two different interpreters, selected from the list of available ones.
This table shows the packages installed locally.
Item | Description |
---|---|
Package | This 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. |
Version | This column shows the currently installed version of a package. |
Latest | This column shows the latest available versions of the packages. If a version is outdated and the package can be upgraded, mark appears in this column. |
Item | Tooltip and shortcut | Description |
---|---|---|
Install Alt+Insert | Click this button to install a new package from the accessible remote repositories. | |
Uninstall Alt+Delete | Click this button to uninstall the selected local package. | |
Upgrade | Click this button to install the latest available version of a package. This button is only available for the outdated package versions. | |
Show earlier releases | Click 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). | |
Use Conda Package Manager | This 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. |
The buttons on this toolbar are disabled for the Docker-based and Docker-Compose-based interpreters.
Download bmw tis technical information system. All the packages should be already installed in the Docker image. If some packages are missing, then you will have to create a new Docker image, as described on the page Quickstart Guide: Compose and Django.