How to Install PyCharm on Ubuntu

PyCharm is a widely used IDE among Python programmers. It is accessible as both a community and a commercial version. The community version is open, while the professional version comes with a 30-day free trial. Skilled Python professionals can consume the professional version, while students and Python beginners can use the free version. This guide will show you how to install and configure PyCharm on your Linux operating system running Ubuntu 20.04 LTS. So, make sure you have Ubuntu 20.04 installed on your Linux system.

Update Ubuntu

Open your command terminal after a successful login from Ubuntu 20.04 Linux system. Firstly you need to update and upgrade your Ubuntu Linux System. And, for this, we have to execute the cited below command in the shell. It will require your user password to proceed with the update. Enter the password and tap the Enter key.

$ sudo apt-get update –y && apt-get upgrade -y

Install Snap Utility

To install PyCharm on your system, you must have the Snap utility installed on your system. So, execute the cited below command in the terminal to install it. It will again ask for your current account password from which you are logged in.

$ sudo apt install snapd

Install PyCharm on Ubuntu 20.04 via Terminal

Firstly, we will see how to install pyCharm via the command terminal. There are different versions of PyCharm available for Linux systems to be installed. So we will see each one of them, one by one. If you are a student or a beginner and want to install its community version via terminal then you have to use the below Sudo command along with the “snap” utility while using the keyword for the “community” PyCharm version. It takes little time to install it.

$ sudo snap install pycharm-community --classic

If you want to install the professional version of PyCharm in your Ubuntu 20.04, try the below query in the command shell. It will take more time than the community version to be installed. Sit back and relax.

$ sudo snap install pycharm-professional --classic

You can also install its educational version via the command terminal. For this, try the stated below query in the shell. It may require some time to get installed.

$ sudo snap install pycharm-educational --classic

After some time it will get installed and you are ready to use it.

Launch PyCharm via Command Terminal

You can launch PyCharm via the command terminal by using the simple instructions below.

$ pycharm-community

A new window will be shown beneath. You have to tick mark the checkbox to accept the License Agreement of PyCharm to get started and tap the “Continue” button to proceed.

Another screen will appear as below. Click on the “Don’t Send” button to proceed with the launch of PyCharm.

Now our newly installed PyCharm has been opened as below.

The below snapshot shows the main screen of PyCharm when it gets launched fully.

Install PyCharm via Manual Way

Suppose you are unable to install PyCharm via the terminal. You may install and configure it through Jetbrain's official website. Open any installed web browser from your Linux system and add the URL below. Now tap the Enter key to search it. You will be navigated to the official website of JetBrains.

https://www.jetbrains.com

In the header menu bar, you have to click on “Developer tools” and in the drop-down list, you will find many IDE’s for python. Click on the “PyCharm” to get it.

Another page will be opened, as shown below. Tap the Download button to get to the version page of PyCharm.

The below snapshot shows PyCharm’s different versions listed. You can download the one you want by clicking on the “Download” button under each version. We are downloading the “Community version”.

Right after you click on the Download button, the below dialog box will appear. Select the “Save File” radio button and hit the OK button to continue downloading the PyCharm.

Now the PyCharm has been started downloading in Ubuntu 20.04 Linux system as seen below.

Wait until it completes its download. You can found the downloaded file of PyCharm in the downloads folder of Ubuntu 20.04. Now, open the command terminal and navigate towards the Downloads folder by using the below “cd” command.

$ cd ~/Downloads

List all the files from the Downloads folder using the “ls” command with the “-lh” flag. You can see that the output shows the recently downloaded archive file in it.

$ ls -lh

We need to extract this archive file using the below “tar” instruction along with the file name as mentioned in the above image. It will start unzipping it.

$ tar xvzf pycharm-community-2021.1.tar.gz

Now the file has been successfully unzipped, you can list the pycharm executable file as below.

$ ls -lh

To install PyCharm on your Linux system, simply execute its “.sh” executable file from the bin directory using the below query having the name of a file as mentioned above. It takes a little time and then it will be ready to use.

$ pycharm-community-2021.1/bin/pychar.sh

Your PyCharm will be installed and automatically launched after some time, and the following screen will be opened.

Remove PyCharm

If you have installed the community version of PyCharm, then use the below command to uninstall and completely remove it from your Linux system. It requires your user password to make it possible.

$ sudo snap remove pycharm-community

To remove the professional edition of PyCharm, try the below instruction in the shell.

$ sudo snap remove pycharm-professional

 To remove the educational edition, execute the below query.

$ sudo snap remove pycharm-educational

Conclusion

Hopefully, you will find this tutorial helpful to download, install and launch the PyCharm utility on your Ubuntu 20 Linux operating system. If you ever find yourself unable to install the PyCharm package using one method, try installing it by another method mentioned in this article.

Share this page:

0 Comment(s)