avatarSamer Sallam

Summary

This article provides a comprehensive guide on setting up Python and the PyCharm IDE on a Linux system.

Abstract

The article "Python Setup on Linux: Python Complete Course — Part 5" serves as a step-by-step tutorial for Linux users to install Python 3.6 and configure the PyCharm Integrated Development Environment (IDE). It begins by instructing users to install Python via the terminal using sudo apt-get install python3.6 and verifying the installation by running Python3.6. The second part of the guide focuses on downloading and setting up the PyCharm IDE from the official JetBrains website, including extracting the tar.gz file, running the PyCharm.sh script, accepting the privacy policy, customizing the UI theme, and creating a launcher script. The article emphasizes the importance of having Python and a code editor to facilitate learning Python programming. It also encourages readers to subscribe for future posts and consider Medium membership for unlimited access to stories and support for writers.

Opinions

  • The author emphasizes the ease of installing Python on Linux by using simple terminal commands.
  • PyCharm is recommended as the preferred IDE for Python development on Linux, with the Community edition being free and sufficient for most users' needs.
  • The article suggests that readers can enhance their PyCharm experience by installing additional plugins, though this is optional.
  • The author values reader engagement and support, prompting them to subscribe to posts and follow on Medium.
  • There is an implicit endorsement of Medium's membership model, highlighting the benefits for both readers and writers.

Python Setup on Linux: Python Complete Course — Part 5

Photo by Soumil Kumar on Pexles

Before we start let me tell you that:

  • This article is a part of the Python Complete Beginner to Expert Course which you can find it here.
  • This article is also available as a YouTube video here.

Introduction

To start learning Python, you should get Python installed on your machine. Also, you need an editor to write and run your code.

If you are a Linux user, this article is for you. The following articles are for Windows and macOS users.

[4] Python Setup on Windows

[6] Python Setup on MacOs

This article will cover the following outlines:

  1. Python Setup on Linux
  2. PyCharm IDE Setup on Linux

1. Python Setup on Linux

Photo by cottonbro on Pexles

To get Python on your Linux, follow these steps:

  1. Open the terminal with Ctrl+Alt+T and type:
sudo apt-get install python3.6

Click Enter and make sure to type 3. Otherwise, Python 2.7 is going to be installed.

2. After that, you have to enter the password of your current user.

3. Once it is done, just type:

Python3.6

then Enter.

4. If you find Python 3.6, that means you are ready now to use Python. Refer Figure1.

Figure 1: Python installed successfully (Screenshot By Author).

5. Finally, exit out of the Python shell by running Ctrl-z then enter.

Let’s move on and install PyCharm IDE.

2. PyCharm Setup on Linux

Photo by Fabricio Trujillo on Pexles

Simply, follow the steps:

  1. Visit the official PyCharm site PyCharm download page from your Internet browser.
  2. Under Linux, select the Community version from the download page. Then click download. Refer to Figure 2.
Figure 2: PyCharm Download Page for Linux (Screenshot By Author https://www.jetbrains.com/pycharm/download/#section=linux).

3. Once the tar.gz file has been downloaded on your computer, extract the downloaded file. Refer to Figure 3.

Figure 3: Extract the downloaded file (Screenshot By Author).

4. Once it’s extracted, you will find multiple folders and files. There is a file, inside the bin folder, its name PyCharm.sh. Refer to Figure 4.

Figure 4: PyCharm.sh file inside bin folder (Screenshot By Author).

5. Launch the pycharm.sh file script, which is located inside the bin folder. To do that open your terminal and navigate to the script file location.

cd Downloads/pycharm-community-2020.1.2./pycharm.sh

then press enter. Refer to Figure 5.

Figure 5: Steps to Install the Pycharm (Screenshot By Author).

6. Accept the privacy policy and click continue. Refer to Figure 6.

Figure 6: JetBrains Privacy Policy (Screenshot By Author).

7. It is up to you to share some data from your environment or don’t share. Refer to Figure 7.

Figure 7: JetBrains Data Sharing (Screenshot By Author).

8. Now we can start customizing our PyCharm environment. Select your preferred UI theme, then click Next. Refer to Figure 8.

Figure 8: Customize PyCharm Environment-UI theme (Screenshot By Author).

9. Check the box (create a script….), click next. Refer to Figure 9.

Figure 9: Launcher Script Box (Screenshot By Author).

10. You can download and install any of the PyCharm plugins or skip that, click Start using PyCharm. Refer to Figure 10.

Figure 10: Download Featured Plugins (Screenshot By Author).

11. The installer will ask you to enter your user password. Enter the password, and then click OK. A welcome window will appear. Here, you can start and create your first project. Refer to Figure 11.

Figure 11: Welcome to PyCharm window (Screenshot By Author).

Congratulations! You can start coding on your computer…

Now, let us summarize what we have learned in this article:

Photo by Ann H on pexels

In this article we have talked about:

  • How to Setup Python on Linux.
  • How to Setup Pycharm IDE on Linux.

P.S.: A million thanks for your time reading my story. Before you leave let me mention quickly two points:

  • First, to get my posts in your inbox directly, would you please subscribe here, and you can follow me here.
  • Second, writers made thousands of $$ on Medium. To get unlimited access to Medium stories and start earning, sign up now for Medium membership which only costs $5 per month. By signing up with this link, you can directly support me at no extra cost to you.

To get back to the previous article, you can use the following link:

Part 4:Python Setup on Windows

To move on to the next article, you can use the following link:

Part 6:Python Setup on MacOs

Python
Programming
Python Setup
Linux
Pycharm Ide
Recommended from ReadMedium
avatarAbhay Kumar
OOPs in Python

An easy guide

10 min read