PyCharm is released in two versions community and professional. The community edition is available for free to download and use. Ahead in this article, we will discuss the installation of the PyCharm community edition in Ubuntu 20.04 LTS.
How To Install PyCharm Using Snappy Package Manager
Snappy is a package manager developed by Canonical for the Linux operating system. The packages used by this package manager are called snaps. Snaps themselves have no dependencies on any app store. It provides better package management. In Ubuntu, it comes preinstalled so you need not install it manually.
To download and install PyCharm snap package use the following command –
sudo snap install pycharm-community --classic
After installation get successful it will display the following information
2020-07-10T08:07:58+05:30 INFO Waiting for restart... pycharm-community 2020.1.3 from jetbrains* installed
Add /snap/bin in PATH environment variable
Now if you run the following command to open PyCharm –
It can display the output something like this –
Command 'pycharm-community' is available in '/snap/bin/pycharm-community' The command could not be located because '/snap/bin' is not included in the PATH environment variable.
This means you need to add /snap/bin in the PATH environment variable. To add this first open /etc/environment using a text editor –
sudo nano /etc/environment
:/snap/bin into the string passed to the PATH variable. And then save and exit from the text editor and reboot your system.
Once again start the IDE using –
How To Install PyCharm Using .tar.gz Archive
First, download the .tar.gz archive containing PyCharm community edition from the Official Website of JetBrains. This method of installation probably works on any system but you have to manually extract it somewhere and the updates are also not easy. To extract and install PyCharm follow the given steps –
1. Unpack the downloaded PyCharm package to the directory where you want to install it –
tar xfz pycharm-*.tar.gz -C <location>
The recommended installation location according to filesystem hierarchy standard is
/opt now to install PyCharm into this directory use the following command –
sudo tar xfz pycharm-*.tar.gz -C /opt/
2. Now change the directory to the bin subdirectory –
3. Run the following command from this subdirectory –
If you want to remove PyCharm IDE from your system. You should use the following command –
sudo apt-get remove pycharm-community
If you used snap command to install then use the following command to uninstall it –
sudo snap remove pycharm-community
Now IDE is ready for use you could start coding on it. If you want to say something on this topic then write us in the comments below.