How to setup PyCharm in 15 minutes

How to setup PyCharm in 15 minutes cover bdfb903fade441cbf25d1c507da5c3d3 800

PyCharm is an integrated development environment (IDE) specially designed for Python development. Among other amazing features, like code completion and highlighting syntax errors on the go. JetBrain is the company behind PyCharm, and they offer a free and paid version. PyCharm also supports many other different frameworks like Django, Flask, and JavaScript.

What is the purpose of this article?

By reading this article, you will be able to:

  • Download and install PyCharm
  • Configure PyCharm.
  • Create a new Python project in PyCharm

List of contents of this article:

  1. Downloading and Installing of PyCharm
  2. Configuring PyCharm
  3. Creating a new project in PyCharm

Downloading and Installing PyCharm

Downloading and installing PyCharm is straightforward. It is just like installing any other application on your computer. I want to show these first steps here to explain the available Pycharm versions. To download PyCharm, you have to visit the JetBrains website.

How to setup PyCharm in 15 minutes download cbddf040033b71822eaf1bea6c3395f1 800
Initial Pycharm download page

Click on the download button. After that, you can choose between the paid and free versions of PyCharm. The professional version is paid, and the community version is free. I will download the professional version because I have a student account. My first tip is if you have a student account, you can have the paid version for free! I used the GitHub student developer pack to get access to it.

How to setup PyCharm in 15 minutes version 4796a436142b2ef26cb123f03be699ea 800
PyCharm editions page

For me, the professional edition is useful because I have access to scientific tools. For example, while analyzing a dataset, you can see plots inside PyCharm and easily keep track of the variables you create. This feature reminds me of RStudio, so if you are used to RStudio you will feel right at home. On top of that, it has tight integration with Jupyter Notebook (and I love Jupyter Notebook! ❤️).

The other paid features are backend development support, remote development capabilities, and database support. You can check their editions comparison page for more information. The good news is that the intelligent coding assistance, the debugger, code inspections, version control integrations, and refactorings are available in the free version as well. Intelligent coding assistance means that PyCharm helps you to complete your code by showing the parameters a function takes or the available methods of a class, for example. After you download the image file, you copy it to your Applications folder.

How to setup PyCharm in 15 minutes application 10edf10c885cbee7b7cf0fab7cd28a51 800
Drag PyCharm to the Applications folder

After that, open PyCharm from the Applications folder. Go to the Applications folder, locate PyCharm, and right-click open it. If you are on Mac, you will receive an alert that says, “PyCharm is an app downloaded from the internet.” You can click Open anyway. As PyCharm launches, it will ask you if you would like to import settings from a Config or installation folder.

Configuring PyCharm

The first time PyCharm launches, it will offer you the chance to import older settings (from a previous PyCharm installation).

How to setup PyCharm in 15 minutes import 249d5ea2026c89e42a4db456bc1f7509 800
Import PyCharm settings pop-up message

If you are installing PyCharm for the first time, you don’t need to import settings. I won’t import settings and opt for a fresh start. The next screen will ask you to customize PyCharm. The first question is to select a keymap scheme. Keymap scheme refers to keyboard shortcuts, check the different examples in the figure. I leave it as it is because I’ve never used PyCharm before, and it is updated for newer Mac OS versions.

How to setup PyCharm in 15 minutes keymap 74427f4e1c0affa0f1d19d2f4e99d870 800
Select keymap scheme to customize PyCharm

I click on Next: UI Themes. On the following page, I opted for the dark ‘Darcula’ theme. Don’t be disappointed if you don’t like any of the themes right now. Later you can add a plugin that allows you to choose between several other beautiful options 😍 (hint: it’s a plugin called Material UI Theme). After you chose, click on Next: Launcher Script. A Launcher script adds a small terminal program that can launch PyCharm from your terminal in any given directory. What I mean is that it allows you to do the following:

charm ~/DeveloperProjects/MyNewPythonApplication

In that line, I am launching PyCharm in the directory called ‘MyNewPythonApplication’ that is a sub-directory of ‘DeveloperProjects.’ If you like this feature, check the box. To continue, click on Next: Featured plugins.

How to setup PyCharm in 15 minutes launcher 346570e1bb20b3ceed103d625e937825 800
Select create launcher script

On the next screen, Pycharm suggests popular plugins. That’s a personal choice. I didn’t install any of them. The configuration is almost ready, now click on Start using PyCharm.

How to setup PyCharm in 15 minutes plugins 3204df0240ac3d75b1272ad6cb4f89b5 800
Download featured plugins

Creating a new project in PyCharm

Now, the next step is to either open an old project (from a repository on your local machine or version control) or create a new project. Let’s suppose you want to start a new project. Then, click on + Create New Project.

How to setup PyCharm in 15 minutes location 738e753586454d6630c0d591c797ca55 800
Create a new project in PyCharm

Because I chose the professional version of PyCharm, I can select among several project options from the left sidebar. If you have the free version, you won’t have these options, so you can only open a new Pure Python project. You can create a new project in the same way, though. Chose the location (directory) where you want to save your project.

By clicking on Project Interpreter: New Virtualenv environment, you can choose the environment options for your new project. When you are coding in Python, you will probably make use of several libraries. The environment will hold all the libraries you will install for that project. There are two options 1) New environment or 2) Existing interpreter.

How to setup PyCharm in 15 minutes env ca5e29cdb689006b4f7964a0d1aebcdc 800
Virtual environments

The new environment (first) option gives yet three possibilities, Virtualenv, Pipenv, or Conda. Virtualenv is the default option. Pipenv is newer, and it is supposed to have extra functionalities. To make use of Conda, you need to have installed the Anaconda or Miniconda on your machine. I use the default Virtualenv because it is the one I feel more comfortable. Besides, you can choose the Base interpreter (Python 3 in my case). Click on Create to continue.

How to setup PyCharm in 15 minutes tip 62bb4508a70c3924390ece3d06601718 800
Tip of the day

Before you can start coding, PyCharm suggests a ‘Tip of the Day’ option with tricks on how to increase your productivity by using keyboard shortcuts. I find it useful, so I want to receive these tips for now. If you think you don’t need them, you can uncheck this option on the bottom left corner of the pop-up. After that, close the pop-up. Now you can create a new file by clicking Cmd + N (on Mac) or clicking on File > New > File or clicking File > New > Python File (from templates). If you chose the last option, PyCharm will create a file with the .py extension.

How to setup PyCharm in 15 minutes gif d29f6687b24f840c6c806635822d2d7f
Create a new file

You can finally write your code! After you are ready, you can run your script by clicking Run on the main menu (the green arrow on the top right corner) or pressing Ctrl + Option + R on the keyboard. PyCharm offers several features to help you code. Now that the installation and configuration are complete, you can start getting accustomed to PyCharm and learning all the productivity hacks it offers! To read the full installation guide, click here.

Do you like this post? Make sure to subscribe to my newsletter at 👩🏽‍💻 and follow me on Instagram @virgginiacs for new content on Python and Data Science.

Prev post: Expert performance: 5 Steps to achieve expertise in any domain of knowledgeNext post: 10 Free Online Resources To Improve your Data Science Skills

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *