I want to install the PyCharm IDE by JetBrains for Python (free community edition).
I managed to download the PyCharm community version, but I do not know how to install it. Can you please help me?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Note: This answer got updated in January 2019 according to JetBrains' recommendations at that time and because GetDeb seems broken. To see my previous version of the answer, check the revisions.
You can visit the PyCharm Download page for Linux.
They offer three different ways to install PyCharm (Professional or Community Edition) there, in order of my personal preference. Decide on one of them:
Don't download PyCharm directly, but instead get and install the free Toolbox App to manage all of your JetBrains IDEs easily. The Toolbox lets you conveniently manage and install all JetBrains IDEs and update them with a single click, all in one place. It can also centrally manage your account login, if you have a paid license.
I would strongly recommend it, especially if you might want to use any other JetBrains IDEs like e.g. IntelliJ or WebStorm too. This method also doesn't need administrator rights, everything will be installed in your home directory (
~/.local/share/JetBrains by default).
To go this way, download the Toolbox installer first. It comes as
.tar.gz archive again, but only contains a single AppImage executable. Extract and run that to install the Toolbox. You can delete the downloaded archive and AppImage after that again. Then, launch the Toolbox App:
It will list your installed IDEs, and show all other available products below that. Just click the Install button next to the PyCharm edition you want (free Community or paid Professional) and it will do everything for you in background.
You should also probably check the Toolbox settings and adapt them to your preference. To do that, click the screw nut symbol in the top right corner. Most importantly in my opinion, decide if you want it to keep the previous version after an update as fallback. Note that each IDE will take roughly around 1GB disk storage, and if you have many IDEs installed and also keep fallback versions, this can add up to a lot of space if your Ubuntu partition isn't that big. You can also switch automatic Toolbox (not IDE) updates, Toolbox autostart and sending anonymous statistics on or off.
JetBrains offers all PyCharm editions as snap packages for Ubuntu. This should be supported since 16.04. Some flavours of Ubuntu (like Lubuntu) might not come with snap support preinstalled though. Check this installation guide in that case.
I have not personally tried this approach, but it looks like a good thing to me.
Installing a PyCharm snap should be as simple as running one of the below commands, depending on which edition you want:
sudo snap install pycharm-community --classic
sudo snap install pycharm-professional --classic
sudo snap install pycharm-educational --classic
Next, run either
pycharm-educational in the terminal, depending on which you installed.
You can select and download an archive containing either the Professional or Community Edition from the page linked above.
This method should probably work on any system, but I would personally not really recommended it as you have to manually extract it somewhere and updates are also not that easy.
If you decide to go for this anyway, follow the instructions here after you downloaded the
.tar.gz archive file for your preferred edition. For your convenience, here's an adapted version of the official instructions:
pycharm-*.tar.gzfile to the folder where you want to install PyCharm:
tar xfz pycharm-*.tar.gz -C <new_archive_folder>
The recommended installation location according to the filesystem hierarchy standard (FHS) is
/opt. To install PyCharm into this directory, enter the following command:
sudo tar xfz pycharm-*.tar.gz -C /opt/
(Personal note: I would advise against putting PyCharm in a location that requires
sudopermissions to write. Pick a location somewhere in your home directory instead to avoid permission problems in the future, e.g. during updates.)
Switch to the bin subdirectory:
There are a lot of resources around the web explaining that you should install it from a tar.gz or an unofficial PPA. While using a PPA is a nice solution, I wanted to point out that Pycharm is supported by ubuntu-make. Ubuntu-make is supported by Canonical and is a way to install any IDE you may need.
Steps are as follows:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt-get update sudo apt-get install ubuntu-make umake ide pycharm
You can now launch pycharm from the unity launcher
PyCharm is also available as a snap package.
sudo snap install pycharm-community --classic
This is the Ubuntu latest iteration at an app model and any package available as a snap should be preferred. Snaps can be installed on almost all versions of Linux (as long as you've installed the snap core).
A benefit of snaps is that they update in the background, so you will always have the latest version.
--classicconfinement may perform arbitrary system changes outside of the security sandbox that snaps are usually confined to, which may put your system at risk.
WARNING: The publisher for this snap is joeborg, so you are trusting him.
Let Ubuntu Make (
umake) do the work for you:
Ubuntu Make is a command line tool which allows you to download the latest version of popular developer tools on your installation, installing it alongside all of the required dependencies [...] Basically, one command to get your system ready to develop with!
1) Open the terminal (keyboard shortcut Ctrl+Alt+T)
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
3) Update the package lists from the repositories and install the latest stable version of
sudo apt-get update sudo apt-get install ubuntu-make
4) Install PyCharm using
If you want to install PyCharm Community Edition:
umake ide pycharm
If you want to install PyCharm Professional Edition (license required):
umake ide pycharm-professional
You are ready to go!
In case you change your mind, you can remove PyCharm with:
umake -r ide pycharm
I just realized this answer is an almost duplicate of this other answer. I am keeping it for the sake of completeness.