Installing PyCharm on Ubuntu 22.04 LTS

PyCharm is an open-source and free Python IDE tool used by professional developers to edit and execute python code. It provides many built-in tools that help users to be more productive in terms of creating python applications. The key features of PyCharm are Intelligent Python Assistance, Scientific Tools, Remote Development capabilities, and so on.

The following tutorial will show you how to install, launch, and remove PyCharm from Ubuntu 22.04.

Installing PyCharm on Ubuntu 22.04

To install PyCharm on Ubuntu 22.04, follow the below-given steps.

Step 1: Update and Upgrade system packages

In the first step, update and upgrade the system packages. For doing so, open the Ubuntu 22.04 terminal by pressing “CTRL+ALT+T” and execute the below-given command:

$ sudo apt update && sudo apt upgrade
how to handle linux files and direc...

Let’s move toward python3-pip installation.

Step 2: Install python3-pip

In the following step, install python3-pip as its supports PyCharm:

$ sudo apt install -y python3-pip

Step 3: Install PyCharm

Now, start the installation of the PyCharm community version by utilizing the provided command on the Ubuntu 22.04 terminal:

$ sudo snap install pycharm-community --classic

You can also install PyCharm professional and educational versions according to your preferences:

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

Step 4: Verify PyCharm installation

Verify PyCharm installation by checking its version:

$ sudo snap list pycharm-community

As you can see, we have successfully installed the PyCharm community version “2022.1.2” on our Ubuntu 22.04. Let’s move toward launching it on our system.

Launching PyCharm on Ubuntu 22.04

To launch PyCharm on the Ubuntu system, look at the below-given procedure.

First, make search “PyCharm” in the “Activities” menu and open it from the given results:

Then, the “PyCharm User Agreement” wizard will appear on the screen. Accept the PyCharm agreement and press the “Continue” button:

After doing so, the “Data Sharing” wizard will open up. Click on the “Send Anonymous Statistics” button to continue:

As you can see, PyCharm is successfully installed and ready to use on Ubuntu 22.04:

Let’s take a look at the uninstallation of PyCharm on Ubuntu 22.04.

Uninstalling PyCharm from Ubuntu 22.04

To uninstall PyCharm from Ubuntu 22.04, use the command given below:

$ sudo snap remove pycharm-community

We have acquired all the required steps to install, launch, and uninstall PyCharm on Ubuntu 22.04.

Conclusion

To install PyCharm on Ubuntu 22.04, firstly, install python3-pip on the Ubuntu system. Then install PyCharm by executing “$ sudo snap install pycharm-community –classic” on the terminal. Users can also install a professional and educational version of Pycharm with the help of provided commands. In this post, we have completely demonstrated the methods to install, launch and uninstall PyCharm on Ubuntu 22.04.