Install PyCharm on Linux

Considering the popularity of the Install IntelliJ IDEA on Linux post, I decided to write another post about how to install PyCharm the famous Python IDE on Linux. IntelliJ and PyCharm are from the same company and built on the same code base. However the final executable file and some configurations are different in PyCharm.



Step 01:
Download the latest version of PyCharm from the official website.




Step 2:
Open the Terminal (Ctrl + Alt + T) and enter the following command to change the directory.
cd /opt/

Step 3:
Enter the command given below to extract PyCharm from ~/Downloads directory. If your downloaded file is in any other directory, replace the last parameter by the actual file path.
sudo tar -xvzf ~/Downloads/pycharm-community-2020.2.tar.gz

Step 4 (Optional):
I prefer to rename the PyCharm folder unless I have multiple versions of the IDE. If you want the same, enter the following command to remove the version from the folder name.
sudo mv pycharm-community-2020.2 pycharm

Step 5:
Open PyCharm from the terminal using the following command. Note that there is no sudo in front of the command.
/opt/pycharm/bin/pycharm.sh

Step 6:
In the appeared dialog to import existing settings, choose "Do not import settings" if you want a fresh installation. If you already had a PyCharm, you can import the previous settings by selecting the first option.


Step 7:
In the next dialog, you will be asked to select a UI theme. Depending on your preference, select the theme and click Next.





Step 8:
If you want to launch PyCharm from Terminal, creating a launcher script makes your life easier. Depending on your requirement, you can enable this feature.


Step 9:
Now you can install new plugins. You can always install them later in the Settings dialog. So just click the button "Start using PyCharm".


Step 10:
Now, PyCharm will open and be ready to use. However, you can notice that still, we are running it from the Terminal. From the Configure option, select Create Desktop Entry.


You will be asked to create the desktop entry for all users or only to the current user as shown below. If you choose to create the desktop entry for all users, you will be asked to enter the root password to create the entry in the /usr/share/applications folder.


After creating the desktop entry, close the PyCharm and the Terminal.

Step 11:
Now search for 'PyCharm' in the start menu and open it.


Step 12:
A common problem encountered in PyCharm is its default keyboard shortcuts assigned to the Windows environment. This may cause unexpected behaviors of keyboard shortcuts on Linux environment. To fix this problem, open PyCharm go to SettingsKeymap and select "GNOME" or "KDE" in the Keymap dropdown list.


I hope this helped you to setup PyCharm on your Linux machine. Feel free to comment below your if this helps or if you hit any problems while installing PyCharm.
Previous
Next Post »

Contact Form

Name

Email *

Message *