How to Install PyCharm on Ubuntu 24.04, 22.04 or 20.04

PyCharm is a beacon for developers seeking an integrated development environment (IDE) for Python. Crafted by JetBrains, it integrates coding, debugging, and testing in a seamless, user-friendly interface. PyCharm is celebrated for its efficiency and productivity boost through features like code analysis, a graphical debugger, an integrated unit tester, and support for web development with Django.

Some of what makes PyCharm so popular include:

  • User-friendly Interface: PyCharm’s intuitive and customizable interface is designed for developers of all skill levels.
  • Rich Set of Features: It boasts advanced coding assistance, intelligent code refactoring, and on-the-fly error highlighting, making coding more efficient.
  • Versatile Development Support: From Python to web development frameworks like Django and Flask, PyCharm supports a wide range of programming needs.
  • Integrated Developer Tools: PyCharm integrates with version control systems, provides database tools, and supports scientific tools, enhancing productivity.
  • Customizable and Extensible: Users can customize their workspace with themes, plugins, and editor preferences to fit their style.
  • Smart Code Navigation: Effortlessly navigate through projects with smart search, go to class/function, and quick view definitions.
  • Built-in Debugger and Test Runner: Simplifies the debugging process and supports test-driven development with a powerful graphical debugger and test runner.
  • Remote Development Capabilities: Offers the ability to develop remotely on virtual machines, Docker containers, and cloud environments.

Now, let’s transition smoothly into the technical details of installing PyCharm, making your development workflow more efficient and streamlined.

Method 1: Install PyCharm via APT PPA

Update Ubuntu System Before PyCharm Installation

Before we begin, updating your Ubuntu system’s local package database is essential. This allows your system to gather the most recent information about the available packages and their versions from Ubuntu’s repositories.

The following command will accomplish this:

sudo apt update

With the package database updated, we should now upgrade the system. This operation ensures all installed software packages on your system are updated to their latest versions:

sudo apt upgrade

Install Initial Packages For PyCharm PPA

Next, we install the necessary packages for our operation, which include dirmngr, ca-certificates, software-properties-common, apt-transport-https, curl, and lsb-release. These tools facilitate the addition and management of repositories, file transfers, and execution of various other tasks:

sudo apt install dirmngr ca-certificates software-properties-common apt-transport-https curl lsb-release -y

Import JetBrains PPA by Jonas Groeger for PyCharm

At this point, we’re ready to add the JetBrains Personal Package Archive (PPA) to our system’s list of repositories. This allows APT to access PyCharm from the JetBrains’ PPA directly.

To ensure the authenticity of the packages from the JetBrains repository, we import the GPG key. GPG, short for GNU Privacy Guard, is an open standard tool used for secure communication. Importing the GPG key ensures that JetBrains genuinely provides the packages we’re getting from the repository:

curl -s | gpg --dearmor | sudo tee /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg > /dev/null

With the GPG key imported, we’re set to add the JetBrains PPA to our system’s list of package sources:

echo "deb [signed-by=/usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg] any main" | sudo tee /etc/apt/sources.list.d/jetbrains-ppa.list > /dev/null

Refresh APT Packages Index for PyCharm

Having added a new repository, we must update our APT package database once more to fetch the package information from the newly added JetBrains PPA:

sudo apt update

Install PyCharm on via APT Command

With our system ready and all the prerequisites in place, we can now install PyCharm. This particular PPA offers three options: PyCharm Community, Education, and Professional editions.

Most users opt for the Community edition as it’s free. However, while paid, the Education and Professional editions offer more features. Choose the edition that suits your needs and use the corresponding command below to install it:

sudo apt install pycharm-community
sudo apt install pycharm-education
sudo apt install pycharm-professional

With that, you’ve successfully installed PyCharm on your Ubuntu system using the PPA APT method.

Next, alternative Snap or Flatpak methods may better suit your preference, and they will be featured in two separate sections.

Method 2: Install PyCharm via Snap

The Snap package manager is a robust alternative for installing PyCharm IDE. It offers the convenience of providing the most recent versions of all three PyCharm editions: Community, Professional, and Educational.

Re-install Snapcraft (If Necessary)

For users who may have uninstalled Snapcraft previously, a reinstallation is required. This is accomplished with the following command:

sudo apt install snapd -y

After successful reinstallation, it’s time to kickstart the snapd service and set it to start automatically whenever your system boots up:

sudo systemctl enable snapd --now

Enable Classic Snap Support

Some Snap packages utilize a classic’ mode, which grants the application more permissions on the host system. To support such packages, a symbolic link needs to be created using the following command:

sudo ln -s /var/lib/snapd/snap /snap

Install Snap Core Files

At this juncture, users who have re-installed Snapcraft or have already installed it need to update the core files to their latest versions. Use the command below to ensure everything is up-to-date:

sudo snap install core

Install PyCharm via Snap Command

With all preparations complete, it’s time to install PyCharm. Choose from the Community, Professional, or Educational editions based on your needs. The Community edition is free and generally suffices for most users. Here are the respective commands for each version:

sudo snap install pycharm-community --classic
sudo snap install pycharm-professional --classic
sudo snap install pycharm-educational --classic

Method 3: Install PyCharm via Flatpak and Flathub

Flatpak, a potent package manager, provides another avenue for installing PyCharm IDE. While not pre-installed by default due to its competition with Snaps, it’s widely adopted and arguably more mature in other Linux distributions.

Note: If your system does not already have Flatpak installed, please follow our comprehensive guide on “How to Install Flatpak on Ubuntu” to get the most recent supported version.

Enable Flathub for PyCharm

Our first action is to enable Flathub, a sizable app store with a collection of Flatpak applications. This action can be executed using the following command:

sudo flatpak remote-add --if-not-exists flathub

With this command, you’re essentially adding the Flathub repository to your Flatpak setup. If the Flathub repository is already present, the --if-not-exists option prevents the command from returning an error.

Install PyCharm via Flatpak Command

Flathub currently supports the Community and Professional editions of PyCharm; select the option you wish to install with one of the following commands:

flatpak install flathub com.jetbrains.PyCharm-Community -y
flatpak install flathub com.jetbrains.PyCharm-Professional -y

Launching PyCharm Post-Installation via GUI or CLI

Command-Line Interface (CLI) Method for PyCharm

APT Launch Commands

To initiate the different versions of PyCharm that have been installed via the APT package manager, use these commands:


Snap Launch Commands

If you’ve installed PyCharm through the Snap package manager, you’ll want to use the following commands to launch:

snap run pycharm-community
snap run pycharm-professional
snap run pycharm-educational

Flatpak Launch Commands

For those who have installed PyCharm via Flatpak, use these commands:

flatpak run com.jetbrains.PyCharm-Community
flatpak run com.jetbrains.PyCharm-Professional

GUI Method for PyCharm

While the command-line interface can be a swift method to start PyCharm, it might not always be the most practical. You can also launch PyCharm using your system’s graphical user interface (GUI).

  • Access the Activities overview of your desktop.
  • Proceed to Show Applications.
  • Search for PyCharm, and pick the specific version you’ve installed.

Additional PyCharm Commands

Update PyCharm

Staying updated with the latest version of PyCharm is a good practice as it brings new features, improvements, and bug fixes. The update command will differ depending on the third-party package manager you chose for installing PyCharm.

APT Package Manager Update Method for PyCharm

In case you used APT for installation, type in the following commands into your terminal:

sudo apt update
sudo apt upgrade

These commands will check for updates for PyCharm and all other applications installed using APT.

Flatpak Package Manager Update Method for PyCharm

For Flatpak users, updating is straightforward. Run the following command:

sudo flatpak update

Snap Package Manager Update Method for PyCharm

For those who installed PyCharm through Snap, use this command to perform an update:

sudo snap refresh

Remove PyCharm

There might be instances where you no longer need PyCharm on your system. In such cases, you can uninstall it using the corresponding commands for your installation method.

APT Package Manager Remove Method for PyCharm

If you installed PyCharm using APT, you can uninstall it by entering the following commands in your terminal that match the version you installed:

sudo apt remove pycharm-community
sudo apt remove pycharm-professional
sudo apt remove pycharm-education

Moreover, if you do not plan on re-installing PyCharm or using the JetBrains PPA for other products, you can remove the repository and GPG key with these commands:

sudo rm /etc/apt/sources.list.d/jetbrains-ppa.list
sudo rm /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg

Flatpak Package Manager Remove Method for PyCharm

If you installed PyCharm via Flatpak, use the following commands to uninstall:

flatpak uninstall --delete-data com.jetbrains.PyCharm-Community
flatpak uninstall --delete-data com.jetbrains.PyCharm-Professional

Snap Package Manager Remove Method for PyCharm

If your installation method was Snap, you can use the following commands to remove PyCharm:

sudo snap remove pycharm-community
sudo snap remove pycharm-professional
sudo snap remove pycharm-educational


In wrapping up, we’ve walked you through installing PyCharm on Ubuntu using three different methods, highlighting the flexibility and accessibility of setting up your development environment. Whether you opted for the APT PPA, Snapcraft, or Flatpak, you’re now equipped with an IDE that is ready to tackle Python projects. Our final nod goes to exploring PyCharm’s rich features and customizations to supercharge your coding efficiency. Remember, the right tools make your job easier and more enjoyable. So, dive into PyCharm, tweak it to your liking, and happy coding!

Joshua James
Follow me
Latest posts by Joshua James (see all)