Like yourself, I'm a PyCharm Pro user - I gained this through my opensource developments.
The PyCharm Pro download is much larger than the community edition - this indicates that the extras bundled with Pro don't exist in the community edition. Hence - to gain the benefit of the Pro, you basically uninstall the community and reinstall the new version.
Its tidier to do it this way rather than untar'ing over the community install.
The only minor gotcha was that my local community installed edition created an icon desktop file in ~/.local/share/applications
- this conflicted with the Pro version. Hence, you'll need to remove the local file first before the Pro version is recognised.
I recently updated from 4.0.1 to 4.0.4, which I had installed in /usr/local/bin/
(I'm new to Linux, so I'm not sure if this is the best location). Essentially I moved the tarball there, unpacked it, deleted the old directory, realized the script was still pointed at the old (now nonexistent) version, and edited the script to point at the new version. It went like this (adapted from official installation instructions):
sudo mv ~/Downloads/pycharm-community-4.0.4.tar.gz /usr/local/bin/
cd /usr/local/bin/
tar xfz pycharm-community-4.0.4.tar.gz
sudo rm pycharm-community-4.0.4.tar.gz
sudo rm -r pycharm-community-4.0.1
cd pycharm-community-4.0.4/bin/
sudo bash pycharm.sh
PyCharm launched, so I assumed I was good. I then tried to launch PyCharm as I usually would, and got the following error:
Traceback (most recent call last):
File "/usr/local/bin/charm", line 96, in <module>
os.execv(RUN_PATH, [bin_file] + args)
OSError: [Errno 2] No such file or directory
Oops; I assumed the charm
script to which the PATH
points (in /usr/local/bin/
) would be updated by the bash pycharm.sh
line; I was wrong. No worries, it's easy enough to do yourself.
cd /usr/local/bin/
sudo nano charm
The first line after the import statements defines the RUN_PATH
; you'll want to change this to point to the new directory (i.e., 4.0.1
to 4.0.4
for me). Once I did that, it worked like a charm.
My guess is that if I had removed this file before running the script in the new version's bin
folder, it would've created a new script from scratch. This is probably a better practice, as the script itself may be changed more meaningfully than the RUN_PATH
definition.
TL;DR: You'll need to delete the old directory and launch script, unpack the new directory, and run the launch script from inside the unpacked directory.
sudo mv ~/Downloads/pycharm-community-4.0.4.tar.gz path/to/install/
cd path/to/install/
tar xfz pycharm-community-4.0.4.tar.gz
sudo rm pycharm-community-4.0.4.tar.gz
sudo rm -r pycharm-community-<old version>
sudo rm charm
cd pycharm-community-4.0.4/bin/
sudo bash pycharm.sh
Best Answer
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:
JetBrains Toolbox App:
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.
Install as snap package:
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:
Next, run either
pycharm-community
,pycharm-professional
, orpycharm-educational
in the terminal, depending on which you installed.Download as
.tar.gz
archive: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: