Here’s How to Install Python on MacBook

Python is one of the best programming languages today. On macOS, Python is preinstalled and available to use. But people often find it hard to install the latest version of Python on macOS. So if you have just purchased a MacBook and want to know how to install Python on it, this article is for you. In this article, I will take you through a tutorial on how to install Python on your MacBook step by step.

Here’s How to Install Python on MacBook

Before guiding you on installing Python on your MacBook, you should know that your laptop already has Python installed. Some apps in macOS require Python, so every MacOS device comes with Python preinstalled. So to use the preinstalled version of Python, I will recommend installing the Visual Studio Code on your system.

After installing Visual Studio Code, create a Python file and run it. You will be able to execute your Python code without any errors. But if you want to install the latest version of Python, below is how you can install it.

Steps to Install the Lastest Python Version on MacBook

To install the latest version of Python on your MacBook, download Python from Python.org. After downloading it, install it on your system by opening the downloaded setup. Till now you have downloaded the latest version of Python. To use the latest version of Python instead of the preinstalled Python version:

  1. Visit and create a Python file in the VS Code;
  2. Press Shift + Command + P;
  3. You will see a command palette. Type “Python: Select Interpreter” and hit enter;
  4. Then select the latest version of Python that you have just installed.

Summary

So this is how you can easily install the latest version of Python on MacBook or any macOS device. On macOS, Python is preinstalled and available to use. But people often find it hard to install the latest version of Python on macOS. I hope you now know how to install and use the latest version of Python. Feel free to ask valuable questions in the comments section below.

Default image
Aman Kharwal

Coder with the ♥️ of a Writer || Data Scientist | Solopreneur | Founder

Articles: 1237

Leave a Reply