How to Install PyCharm in Ubuntu and Other Linux Distros

A quick tutorial to show you how to install PyCharm in Ubuntu and other Linux Distributions.

PyCharm is considered one of the best Python IDE by Python experts.

The IDE comes in professional and community editions.

  • The community edition is free of cost
  • The professional edition costs money but has more features.

The full list of features can be found here. You can read this comparison between professional and community editions to decide which version suits you.

The installation steps are pretty much the same for all PyCharm editions.

Method 1: Install PyCharm in Ubuntu and other Linux using Snap [Easy]

The good news is that PyCharm is available in the Ubuntu Software Center as a Snap package. This means that you can search for it in the software center and install it from there.

Install PyCharm from Ubuntu software center

If you are using some other Linux distribution, enable snap support first and then use the snap command to install the PyCharm Community Edition:

sudo snap install pycharm-community --classic
install PyCharm in Ubuntu using snap

Remove PyCharm

If you wish to remove the snap version of PyCharm, all you have to do is use the following command:

sudo snap remove pycharm-community
remove PyCharm snap version from ubuntu
Students with an academic email and developers working on Open Source projects which are non-commercial can request access to PyCharm Professional Edition for free! More information on other initiatives for free access and discounts can be found here.

Method 2: Install PyCharm using official Linux installer from JetBrains [Intermediate level]

If you do not like Snap packages, there are other ways to install PyCharm. PyCharm provides an installer for Linux and I am going to show you how to use it.

Go to the PyCharms Download page and download the tar.gz files for either the Professional or Community version. I am using the Community version in the tutorial:

Download PyCharm from the official website

Once done, open the terminal and change your current working directory to the Downloads or that specific directory where the file is downloaded:

cd ~/Downloads

Now extract the tar gz file using the tar command in this way

tar -xzf pycharm-community-*.gz

Now enter the extracted PyCharm folder:

cd pycharm-community-*

Go to its bin folder:

cd bin

Youโ€™ll find a shell script here. Make it executable using the chmod command as shown:

chmod u+x

Now run this shell script:


It will start the PyCharm privacy and policy page. Click on the accept button to get further in the process:

Terms and conditions to use PyCharm on Ubuntu

Then JetBrains will ask whether you would like to send data about features, plugins, and other data.

If you wish to send the data, you can hit the โ€œSend Anonymous Statisticsโ€ button, or you can click on the โ€œDonโ€™t Sendโ€ button:

Data sharing with PyCharm

Yep, that's all it takes to install PyCharm.

But creating a desktop shortcut is a good idea here as no one would want to open the terminal and start the PyCharm manually.

To do so, click on that little gear icon and select Create desktop entry:

create desktop entry for PyCharm in Ubuntu

And it will add the PyCharm entry to the system menu and can be accessed easily:

Access PyCharm from system menu

Remove PyCharm

To remove the PyCharm (if installed manually), first, go to the directory where you extracted the .tar.gz file while installation.

For most users, it should be inside the Downloads directory:

cd Downloads
remove PyCharm from source

Now, remove this directory using the rm command as shown:

rm -r pycharm-community-2023.1.2

That should remove the PyCharm from your system.

But I would recommend removing the other three directories so that you can have a fresh install (if you re-install in the future):

rm -r ~/.config/JetBrains/PyCharmCE2023.1/
rm -r ~/.cache/JetBrains/PyCharmCE2023.1/
rm -r ~/.local/share/JetBrains/consentOptions/

That's it!

Looking for other Python IDEs? Here you go

For some reason, if the PyCharm wasn't good enough for your workflow, we have a dedicated list of the best IDEs for Python:

Best Python IDEs for Linux
Whether a coder or not, you must have heard about Python Programming language in some capacity. Python is used extensively in Artificial Intelligence and Machine Learning, some of the most popular buzzwords in computing. Being a popular programming language, you may already know or be interesteโ€ฆ

I hope you will find this helpful.

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventure. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie and classic detective mysteries ๐Ÿ•ต๏ธโ€โ™‚๏ธ

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world


Great! Youโ€™ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.