Getting started with PyCharm

Installation or Setup

There are two PyCharm editions: Community and Professional.
Both are downloadable from JetBrains website. Additionally, there is another edition, PyCharm Edu. JetBrains recommend this edition, if you are learning or teaching Programming with Python.

The supported platforms are Windows, Linux and macOS.

To install PyCharm on:

  • Windows: Run the .exe file and follow the instructions of PyCharm Setup wizard
  • Linux: Unpack the .tar.gz archive into any directory within your home directory
  • OS X: Open the .dmg package, and drag PyCharm to the Applications folder


Go to the download page, choose the desired edition and go through the classic installer.


There are two options on how to install PyCharm on Linux which depends on if your distro supports ppa packages.

  1. If your distro doesn’t support ppa packages or simply you want download PyCharm directly to the JetBrains website, follow this procedure:

    • Download the <pycharm-professional or pycharm-community>-*.tar.gz file from the download page.

    • Unpack the <pycharm-professional or pycharm-community>-*.tar.gz file to a different folder, if your current “Download” folder doesn’t support file execution

      tar xfz <pycharm-professional or pycharm-community>-*.tar.gz <new_archive_folder> 
    • Switch to the bin directory:

      cd <new archive folder>/<pycharm-professional or pycharm-community>-*/bin
    • Run from the bin subdirectory

  2. If your distro supports ppa packages, type this in the terminal:

    sudo add-apt-repository ppa:mystic-mirage/pycharm
    sudo apt-get update
    sudo apt-get install pycharm

If you are not sure about this information, choose the first method.


Go to the download page, choose the desired edition and open the .dmg package, and drag PyCharm to the Applications folder.

Hello World

  1. Open PyCharm

  2. Select Create New Project

    • Select the desired location to create the project
    • Select the python interpreter
    • Click Create
  3. Create a new python file e.g. with File->New…-> Python File

  4. Add the following code

    #!/usr/bin/env python
    print("Hello World")
  5. Run the code e.g. with Run->Run…->YourCreatedPytonFile