avatarSamer Sallam

Summary

This article provides a step-by-step guide on how to set up Python and PyCharm IDE on macOS.

Abstract

The article is a part of the Python Complete Beginner to Expert Course, which is available as a YouTube video as well. It covers the installation of Python and PyCharm IDE on macOS. The article provides a detailed guide on how to download and install Python and PyCharm IDE, including screenshots of each step. The author also provides instructions on how to test whether Python was installed successfully or not. The article concludes by providing a summary of what was learned in the article.

Opinions

  • The author provides clear and concise instructions on how to set up Python and PyCharm IDE on macOS.
  • The use of screenshots makes it easier for the reader to follow along with the installation process.
  • The author encourages the reader to subscribe to their posts and sign up for Medium membership to directly support them.
  • The author concludes by summarizing what was learned in the article, making it easy for the reader to understand what they accomplished by following the guide.

Python Setup on MacOs: Python Complete Course — Part 6

Photo by energepic.com 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 macOS user, this article is for you. The following articles are for Windows and Linux users.

[4] Python Setup on Windows

[5] Python Setup on Linux

This article will cover the following outlines:

  1. Python Setup on macOS
  2. PyCharm IDE Setup on MacOs

1. Python Setup on macOS

Photo by Omkar Patyane on Pexles

To get Python on your macOS follow these steps:

  1. Go to the official Python site Python.org and select MacOS X from the Downloads dropdown menu. Refer to Figure 1.
Figure 1: Python Download Page for MacOs (Screenshot By Author https://www.python.org/)

2. Select the Python release and download macOS 64-bit/32-bit installer (pkg file). Refer to Figure 2.

Figure 2: MacOS Python installer (Screenshot By Author).

3. Once the pkg file has been downloaded on your computer, open the downloaded file. Now you can see the macOS installation wizard install Python on your computer.

4. You have to agree to the license agreement and keep clicking continue until the installer asks you to insert your user password, enter your password then click on install software. Refer to Figure 3.

Figure 3: Install Python Settings (Screenshot By Author).

5. Click Close, after the installer has successfully installed Python on your computer.

6. You will see a dialogue box asking you if you want to keep or remove the installation file, choose what you want. Refer to Figure 4.

Figure 4: keep or remove the installation file (Screenshot By Author).

Now we are going to test whether Python was installed successfully or not

  • Open your applications folder, and check whether you have Python there. Refer to Figure 5.
Figure 5: Check up the Python from the application folder (Screenshot By Author).
  • Second Open your terminal window and type:
python3 --version

Click enter.

You should get the Python version. Refer to Figure 6.

Figure 6: Python installed successfully.

Let’s move on and install PyCharm IDE.

2. PyCharm Setup on MacOs

Photo by Jessica Lynn Lewis on Pexles

Simply, follow the steps:

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

3. Once the dmg file has been downloaded on your computer, open the downloaded file.

4. After the installer finished Opening and verifying your PyCharm dmg file, you should drag and drop the Pycharm file into your computer application folder. Refer to Figure 8.

Figure 8: Drag and Drop Pycharm File (Screenshot By Author).

5. When the installer finished copying PyCharm to your computer application folder click on the PyCharm icon in that folder, then click open. Refer to Figure 9.

Figure 9: Open PyCharm from the application folder (Screenshot By Author).

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

Figure 10: 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 11.

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

8. Now we can start customizing our PyCharm. Select your preferred Keymap scheme, then click next. Refer to Figure 12.

Figure 12: Customize PyCharm Environment — Keymap scheme (Screenshot By Author).

9. Select your preferred UI theme, then click Next. Refer to Figure 13.

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

10. Check the box (create a script….), then click start using PyCharm. Refer to Figure 14.

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

11. The installer asks you to enter your user password, enter the password, and then click OK. Refer to Figure 15.

Figure 15: Enter your user password (Screenshot By Author).

A welcome window appears, you can start and create your first project. Refer to Figure 16.

Figure 16: 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 macOS.
  • How to Setup Pycharm IDE on MacOS.

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 5:Python Setup on Linux

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

Part 7:Run the First Program in Python

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

An easy guide

10 min read