Install Python 3 – A Beginner’s Guide

In this tutorial, I’ll show you how to install Python 3 on your computer. Python is a programming language that lets you work quickly and integrate systems more effectively.

Python 3 versus Python 2

Python 3 is strongly recommended over Python 2 because Python 2 has reached End of Life status. As a result, Python 3 will no longer receive updates or bugfixes, including security issues.

Installation Guide

Installing Python 3 on a Mac

Option 1 – Use Hombrew

  1. Open your browser and navigate to Command + C the text on the Homebrew site.
Homebrew Website

2. Open your Terminal app or iTerm application and paste the code from the Homebrew site.

Install homebrew

3. This will start the Homebrew installation process. You may be prompted to install the Command Line Developer Tools.

4. When the Homebrew installation process finishes, you can install Python3 by running the following command on your Terminal window.

$ brew install python3 

This will install python3 using Homebrew. You can test if your installation was a success by opening your Terminal window and typing:

$ pip3 
pip3 command

Option 2 – Download from

The second option is to and download the latest package. You will be guided through an installation wizard to install Python3.

Installing Python 3 on a PC

1. Navigate to the Windows downloads section of and download the latest package.

2. When you download the package, an installation wizard will appear to install Python 3 on your computer.

Installing Python3 on a Linux Machine

1. Install required dependencies to build Python.


$ sudo apt update
$ sudo apt install build-essential zlib1g-dev \
libncurses5-dev libgdbm-dev libnss3-dev \
libssl-dev libreadline-dev libffi-dev curl


$ sudo dnf groupinstall development

2. Navigate to and download the latest version of Python 3. After you download the file, you will have a .tar.xz archive (tarball) containing the source code of Python.

3. Extrack the tar.xz archive using your preferred method of choice.

$ tar -xf Python-3.?.?.tar.xz

4. Once the Python tarball has been extracted, navigate to the configure script and execute it in your Linux terminal with:

$ cd Python-3.*

5. Now you can start the build process.

$ make
$ make install 

6. You can verify whether it succeeded by typing in

$ python3 --version

Leave a Reply