Install Python

Table of Contents

Last Updated: April 2, 2021

In this tutorial we will show you how install Python on Windows, MacOS and Ubuntu

Windows

  1. Go to https://www.python.org/downloads/windows/

  2. Choose the Installer options from the Stable Releases

    Output
    Figure 1. Download Python Windows
  3. Run the installed file

  4. Make sure to check the following option

    Output
    Figure 2. Install Python Windows
  5. From the command line run Python by typing

python
Output
Figure 3. Run Python Windows

MacOS

  1. Go to https://www.python.org/downloads/mac-osx/

  2. Choose the Installer options from the Stable Releases

    Output
    Figure 4. Install Python Mac
  3. Run the installed file with the default configurations

  4. After completing the installation you can run python from the terminal by typing

python
Output
Figure 5. Run Python Mac

Ubuntu

Ubuntu 20.04 and other versions of Debian Linux ship with Python 3 pre-installed.

  1. You can upgrade to the latest version by updating the list of available packages then install the newer versions of the packages

    apt-get update && apt-get upgrade
  2. To check what version of Python

    python3 -V