Installing PyCharm on Linux

From CsWiki
Jump to: navigation, search
PyCharm is a JetBrains' solution for Python & Scientific development
Official instructions can be found here.

Installing prerequisite packages

The required packages are: python2.4 or higher, Jython, PyPy or IronPython. The versions that are installed On CSE system are python2.7 and python3.5.

  • On Debian or Ubuntu
    • Open a terminal window (Alt-F2 to run application, type in mate-terminal or gnome-terminal or konsole)
    • Run the installation command
      sudo apt install python2.7 python3.5
  • On other linux distribution you'll have to use the default package manager, like yum in rpm-based distributions
  • In case sudo is not install, you can log in as root (running su command and giving the root passwod)

Downloading the solution

Download from https://www.jetbrains.com/pycharm/download/. Make sure you choose the linux version.

Installation

  • Extract the downloaded file to directory under /opt
Run this command in the terminal:
sudo tar xfz ~/Downloads/pycharm-*.tar.gz -C /opt
  • First run would install the required files on your home directory and start the solution:
replace <version> with the version number of pycharm you've downloaded (you can use TAB key to complete the directory name)
cd /opt/pycharm-<version>/bin
./pycharm.sh

Run the solution

  • Easy access in different desktop environments:
    • In Mate, GNOME Classic: A menu entry would appear under Applications->Programming. Launch it with left click, find more options with right click (like adding the link to the launch bar). In case the entry "Programming" does not exists, it would appear the next time you login to your account.
    • In GNOME on Wayland: Click on Activities, then on the applications button. type in pycharm, and drag the icon to the launch bar. click on the new button to run PyCharm
    • In KDE/Plasma: the link would be under the "K" startup menu -> Applications -> Deveopment