Install PyCharm on Ubuntu Linux with 3 Best Methods

This guide intends to teach you How To Install PyCharm on Ubuntu Linux, including Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04. PyCharm is a software tool that helps developers write Python code more easily. It has features that help with writing, testing, and fixing errors in code. It also helps manage projects, complete code automatically, and work with version control, making it easier and faster for developers to work.

You can now proceed to the guide steps below on the Orcacore website to install PyCharm on Ubuntu with various methods.

Different Methods To Install PyCharm on Ubuntu Linux

To show you the guide steps, we will use Ubuntu 24.04. Log in to your server as a non-root user with sudo privileges and follow the steps below to complete PyCharm Setup on Ubuntu Linux.

Method 1. PyCharm Setup with JetBrains PPA Repository

The first method is to use JetBrains’ PPA repository. First, you must run the system update with the command below:

sudo apt update

Then, install the required packages for PyCharm setup on Ubuntu:

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

Now you must import the JetBrains’ PPA GPG Key with the following curl command:

curl -s https://s3.eu-central-1.amazonaws.com/jetbrains-ppa/0xA6E8698A.pub.asc | gpg --dearmor | sudo tee /usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg > /dev/null

Next, add the JetBrains’ PPA repository to your APT repository list with the command below:

echo "deb [signed-by=/usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg] http://jetbrains-ppa.s3-website.eu-central-1.amazonaws.com any main" | sudo tee /etc/apt/sources.list.d/jetbrains-ppa.list > /dev/null

Once you are done, run the system update again:

sudo apt update

Install PyCharm with APT Command

Now you can easily install PyCharm on Ubuntu 24.04, Ubuntu 22.04, and Ubuntu 20.04 by using the following APT command. You can choose PyCharm Community, Education, or Professional edition. The free version of PyCharm is PyCharm community edition, which you can install with the command below:

sudo apt install pycharm-community -y
Install PyCharm with APT command

If you plan to use the paid editions, you can install them with the commands below:

# sudo apt install pycharm-education -y
# sudo apt install pycharm-professional -y

Update PyCharm with APT command

To update your PyCharm packages with APT, you can easily run the system update and upgrade command:

# sudo apt update
# sudo apt upgrade -y

With this option, you can easily complete your PyCharm setup on Ubuntu Linux. If you’re looking for alternative methods, you can proceed to the next steps to use the Snapd and Flatpak to install PyCharm on Ubuntu.

Method 2. PyCharm Setup with Snapd

In this method, you can easily use the Snap packages to get the PyCharm editions on your Ubuntu system. By default, Snapd is installed and enabled in Ubuntu 24.04. But you must install and enable it on your Ubuntu 22.04 and Ubuntu 20.04 by using the following commands:

# sudo apt install snapd -y
# sudo systemctl enable snapd --now
# sudo ln -s /var/lib/snapd/snap /snap
# sudo snap install core

Install PyCharm with Snap Command

Now you can easily use the following command to install PyCharm community edition with snap command on Ubuntu Linux:

sudo snap install pycharm-community --classic
Install PyCharm with Snap Command

For Professional and Education editions, you can use the commands below:

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

Note: Applications installed by Snap command may not appear on your desktop until the
session is restarted.

Update PyCharm with Snap Command

You can easily update your PyCharm packages with Snap using the command below:

sudo snap refresh

Method 3. PyCharm Setup with Flatpak

Also, you can use an alternative method which is Flatpak. It is the same as the Snapd and you can easily use it to install your PyCharm packages.

First, you must install Flatpak and enable FlatHub on Ubuntu Linux with the commands below:

# sudo apt install flatpak -y
# sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Install PyCharm with Flatpak Command

Now you can easily install PyCharm community edition by using the following Flatpak command:

sudo flatpak install flathub com.jetbrains.PyCharm-Community -y
Install PyCharm with Flatpak Command

You can also install PyCharm Professional edition with the command below:

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

At the current time, Flatpak doesn’t support the Educational edition for PyCharm.

Note: Applications installed by Flatpak may not appear on your desktop until the session is restarted.

Update PyCharm with Flatpak Command

You can easily update your PyCharm packages with Flatpak using the command below:

sudo flatpak update

How To Launch and Access PyCharm on Ubuntu Linux?

At this point, you can easily launch PyCharm using your system’s graphical user interface. From your Activities search for PyCharm, and click on the app to access your application.

Launch and Access PyCharm on Ubuntu Linux
Access PyCharm on Ubuntu

You can also launch your PyCharm app from the command line interface. For the different setup methods you can use the following commands:

For APT Command:

# sudo pycharm-community
# sudo pycharm-professional
# sudo pycharm-education

For Snap Command:

# sudo snap run pycharm-community
# sudo snap run pycharm-professional
# sudo snap run pycharm-educational

For Flatpak Command:

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

Uninstall and Remove PyCharm From Ubuntu Linux

If you no longer want to use PyCharm on your system, you can easily uninstall and remove it with the commands below depending on your installation method:

Remove PyCharm with APT

In this method, you need to remove your APT PyCharm package with the command below:

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

Also, 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

Remove PyCharm with Snap

To uninstall and remove Pycharm package with snap, you can use the command below:

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

Remove PyCharm with Flatpak

To uninstall and remove Pycharm package with Flatpak, you can use the command below:

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

Conclusion

Installing PyCharm on Ubuntu Linux gives developers an easy-to-use IDE for Python programming. It offers tools for coding, debugging, managing projects, and integrating with version control systems, making development faster and more efficient. Whether you’re a beginner or an expert, PyCharm helps you write clean code and manage Python projects smoothly.

Hope you enjoy it. Please subscribe to us on Facebook, YouTube, and X.

Also, you may like to read the following articles:

Installing RabbitMQ Server on Ubuntu 24.04

Set up Samba File Share on Ubuntu 24.04

Set a Static IP Address on Ubuntu 24.04 Via GUI

Install Ubuntu 24.04 LTS Desktop

FAQs

Is PyCharm free to use on Ubuntu Linux?

Yes, PyCharm offers a free version called PyCharm Community Edition, which includes essential features for Python development.

Can I use PyCharm for web development?

Yes, PyCharm Professional Edition provides full support for web development, including frameworks like Django, Flask, and JavaScript, among others. The free Community Edition is focused mainly on Python development.

Can PyCharm be used for other programming languages besides Python?

PyCharm primarily focuses on Python, but the Professional Edition also supports other languages such as JavaScript, HTML, CSS, and SQL, making it useful for full-stack development.

Share your love

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Leave a Reply

Your email address will not be published. Required fields are marked *

Stay informed and not overwhelmed, subscribe now!