How to Update Python on Mac?

Python is a programming language that’s widely used by both beginners and professional developers. This brief guide is written because many people search hot to Update Python on MAC computers.  So we will show you how to install Python 3 on a Mac OS X computer.

Before you jump in the manual, do take note that there are a number of ways to install Python 3 on a Mac but with this guide, I’ll show you the two easiest ways to do so.  Personally, the way I did it was using a package manager like HomeBrew (it is okay if you do not know what it is). Again, I’ll show you how you can do this method down below.  I will explain how to install the Python 3 upgrade on a Mac.

Some Mac programs require Python 2, and when updating they may start to malfunction or stop working. Therefore, we won’t update the version, but install Python 3 in parallel. Python 3 and Python 2 can coexist without conflicts on the Mac the commands will differ slightly.  For it could be somewhat frustrating that Apple does not supply the latest version, typically used these days, when learning Python.

Update Python MAC

How to install Python 3 in macOS with Installer

The easiest way is to download the Python installer from the python.org website.

  • Visit Python.org and download the latest available Python installer file;
  • Run the downloaded file and install Python 3.x on Mac.
  • Python 3.6.x requires about 100MB of available disk space. The installation process is very fast;
  • When Python 3 is installed, you will see the Python3 folder in /Applications on your Mac. You will also see IDLE in the /Applications.

The Python installation may require about 100MB of disk space to install. Once you’ve installed Python 3 you can have it alongside Python 2 without having to delete the latter from your Mac.

Next method will show you how to install Python 3.x on a Mac through Homebrew.

How to install Python 3 using Homebrew

Installing an updated version of Python 3 through Homebrew is extremely simple. Of course, Homebrew should be installed on your computer, however, if you are interested in this method, then you probably have already used the program more than once.

First of all, you’ll need to have this thing called HomeBrew installed on your Mac. Homebrew is basically a “package manager”. A package manager is an application that helps you install the stuff you need that Apple (or even your Linux System) hadn’t installed in the first place for you.

It’s simple, fast and safe. 

Second, you will need to have installed XCode onto your Mac. If you’re thinking of learning how to program or creating iOS apps on your Mac, then it’s good to have XCode installed. We will be using XCode to install HomeBrew application.

 

Note

If you have already installed XCode onto your Mac you can skip step 1 and jump straight to step 3. 

 

Here are the steps to install XCode, HomeBrew as well as install Python 3 using HomeBrew onto your Mac:

  1. Jump into your Terminal app on your Mac and run the copy/paste the following command into the Terminal to install XCode onto your Mac:

    $ xcode-select --install
  2. Simply click through all the confirmation crap that XCode shows. It may take a little while to install XCode since it is a large program.
  3. Great! Now that you have XCode installed, you can install HomeBrew! To install HomeBrew, simply copy/paste the following command into your Terminal:

 

Note

You can confirm the HomeBrew installed correctly by running the command:  below: 

$ brew doctor
Your system is ready to brew.

 

  1. You’ve installed HomeBrew! Now let’s install the Python 3, the reason why you’re here. To install the latest version of Python, just copy/paste the following command into your Terminal:

    $ brew install python3

 

Note

You can confirm which version of Python was installed all by running the command below (the exact same command you tried earlier in this guide). It should show up as follows:

$ python3 --version
Python 3.7.0

 

  1. Finally, let’s run our new Python 3. Simply enter python3.

 

How to Find out the Installed Version of Python

Open the Terminal program and use the following command:

python --version

In most cases, Python 2.7.x will be installed on macOS: either 2.7.4 or 2.7.10.

If you installed the Python update, you can check the version with the following command:

python3 --version

Once again, both versions of Python can coexist without conflicts.

Note: Once again, I want to remind you that you do not need to upgrade Python 2.x to Python 3.x, because this can lead to program malfunctions. Just install the updated version in parallel.

 

You may also like:

managementclass

List Services Using C# Managementclass: WMI Example

Are you ready to delve into the world of Windows Management Instrumentation (WMI) using C#? WMI opens up a plethora of possibilities for accessing system resources and retrieving vital information about your Windows environment. In this comprehensive guide, we’ll walk through the process of retrieving all the services running on your system using the powerful…
Fix Your Windows License Will Expire Soon Error

How to Fix Your Windows License Will Expire Soon Error

Is your Windows 10 PC or Notebook showing ‘Your Windows license will expire soon; you need to activate Windows in PC setting‘ error message? Then this report is for you, here learn the complete details regarding the mistake Your Windows license will expire shortly mistake in Windows 10 and how to repair it.  Windows 10…

IPX7 vs IP67: Which Is Better?

We all know that, for the most part, all devices have an IP rating. Do you have any idea what this IP rating means? If this is something new to you, you’ve come to the correct place since we’ll talk about it here. What exactly is an IP rating? An IP rating, also known as…
convert swf to mp4

How to Convert SWF to MP4 Using the VLC Media Player

SWF is a file extension for a Shockwave Flash file format. SWF files can contain video and vector based animations and sound and are designed for efficient delivery over the web.  SWF files can be viewed in a web browser using the Flash plugin or in the computer using VLC player or any other flash…
GameRanger

No Response From Gameranger Server Error Fix

GameRanger is a free great tool that can help you to play games on your Windows computer. GameRanger can offer you to play more than 700 games online with your friends/colleagues all other the world. This great tool can offer you huge advantages like gamer profile, friends list, instant talk chats in-game, voice communications between…

How To Download JW Player Videos?

JW Player is a popular video player used by many websites to stream video content. It is not directly possible to download videos that are played using JW Player, as the player does not have a built-in download option. However, there are some workarounds that you can try to download JW Player videos. A good…

Connection failed: Too many connections

This means that the maximum number of clients that may be connected to the server has been reached. Either the client will have to wait for another client to log off, or the administrator will have to increase the maximum number of connections allowed. How do I fix too many connections error? The MySQL “Too…

Is a multi line comment in C ?

Multi-line comment Represented as /* any_text */ start with forward slash and asterisk (/*) and end with asterisk and forward slash (*/). It is used to denote multi-line comment. It can apply comment to more than a single line. It is referred to as C-Style comment as it was introduced in C programming. What is…

What does like %% mean in SQL?

The LIKE operator is used in a WHERE clause to search for a specified pattern in a column. There are two wildcards often used in conjunction with the LIKE operator: The percent sign (%) represents zero, one, or multiple characters. The underscore sign (_) represents one, single character. What does %s do in SQL? %s…

Is Excel and SQL enough for data analyst?

Most data analysts learn both Excel and SQL. They use SQL to work in businesses and communicate with large databases and bust out Excel to solve quicker data analysis problems. To become a strong data analyst, it’s recommended you learn both. Is SQL enough to get data analyst job? Since almost all data analysts will…