How to install Pycharm on Debian 11

Developed by JetBrains, the same company behind IntelliJ IDEA,pycharmIt is one of the most widely used IDEs (Integrated Development Environment) for developing Python applications. It is a feature-rich IDE that includes all the features you need to write and debug your Python code. Creates a virtual environment that you can use to run code.

Pycharm is available in 3 editions: Community, Education, and Professional. The Community Edition is absolutely free and open source and is constantly maintained by the developers. Education Edition provides a much simpler user interface and is based on the Community Edition. The professional edition is a paid edition and offers extensive functionality, such as support for more languages and additional tools for web and database development.

In this guide, we will focus on installing Pycharm onDebianeleven.

Option 1: Install Pycharm using snap

One of the easiest ways to install Pycharm is to use Snap. Snap is a software packaging and deployment tool developed by Canonical, the parent company ofubuntu.

A plugin is a containerized application that bundles the application's code together with its dependencies, libraries, source code, and configuration files. Snapshots are distribution independent and work across multiple distributions. The main advantage of using snapshots is that dependencies are well taken care of. As such, you won't have to worry about encountering dependency errors during an application's installation. Snapshots are hosted atSnapcraftwhich is an instant store that contains thousands of instant packs.

To get started, we need to install and enable the Snapd daemon first. This is a service that allows you to manage snapshots on your system. Next, we'll use snap to install the Pycharm app.

First, update the package lists

                      
                        $ sudo apt update
                      
                    

Then install snapd as follows:

                      
                        $ sudo apt install snapd
                      
                    

Once installed, enable the snapd daemon.

                      
                        $ sudo systemctl enable snapd —-now
                      
                    

It is advisable to enable classic plugin support which might need packages that might need to be released from the plugin packaged application and gain full system access just like other traditional packages. To enable classic plugin support, run the command:

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

Also, install the core files.

                      
                        $ sudo snap install core
                      
                    

Then restart the snapd daemon.

                      
                        $ sudo systemctl restart snapd
                      
                    

Then check your status as follows.

                      
                        $ sudo systemctl status snapd
                      
                    

From the output, you can see that snapd is up and running.

The next step is to install Pycharm from Snap. There are three editions of Pycharm: Community, Educational, and Professional.

For this guide, we will be installing the Community Edition, which is free and open source. So run:

                      
                        $ sudo snap install pycharm-community --classic
                      
                    

Once the installation is complete, you will get the following output.

For the Education edition, run the command:

                      
                        $ sudo snap install pycharm-professional --classic
                      
                    

For the Professional edition, run the command:

                      
                        $ sudo snap install pycharm-educational --classic
                      
                    

At this point, Pycharm has been installed successfully. However, the Pycharm icon will not be available until the next reboot. So please reboot your system.

                      
                        $ sudo reboot
                      
                    

NOTE:

While snapshots are a convenient way to install software applications, they take up a considerable amount of disk space compared to installing software packages from official repositories using traditional package managers like APT and DNF. However, the tradeoff is regular updates and constantly maintained packages.

You can update all instant packages in the future using the simple command:

                      
                        $ sudo snap refresh
                      
                    

Option 2: Install Pycharm from Flatpak

The second option is to install Pycharm from Flatpak. This is another universal package management utility that allows you to install and manage software packages without having to worry about dependencies. Like Snap, it is distribution agnostic and allows you to install software packages without having to worry about your Linux distribution. Flatpak apps run in isolation in an environment known as a sandbox that contains everything needed to run the specific app.

To use Flatpak, you must first install and enable Flatpak on your system. Therefore, we will start by installing Flatpak as follows:

                      
                        $ sudo apt install flatpak
                      
                    

Once installed, go ahead and enable the Flatpak repository fromflat centerwhich is a Flatpak app store for Flatpak apps.

Flatpak only offers community and educational editions. But as always, the Community edition is always recommended especially for beginners.

To install Community Edition, run the command:

                      
                        $ sudo flatpak install flathub com.jetbrains.PyCharm-Community
                      
                    

For Professional Edition, run the following command:

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

Here are some sample results. BE SURE to press 'Y' for all prompts.

Launch of Pycharm

To start Pycharm, click on 'Activities' in the upper left corner of your desktop and search for 'Pycharm'. Click the icon to start Pycharm.

After a few seconds, you will get a GUI popup as shown. Accept the Terms of User Agreement and click'Continue' to continue with the installation.

Next, choose whether or not to anonymously share your app's data about features, plugin performance, etc. with the developers of Pycharm.

And finally, you will get the default Pycharm window. Click on 'start tour' to familiarize yourself with the various Pycharm features that you will soon begin to interact with.

Bravo! You have successfully installed Pycharm on Debian 11 BullsEye.

Related Posts