Leroy
Technology

A Step-by-Step Guide to Installing Python

Leroy Serepe on
#Python#installation#programming#tutorials

Table of Contents

Python book

Image Credit: Christina Morillo

Installing Python

Python is a versatile and widely-used programming language. Here are the steps to install Python on your system:

Step 1: Download Python

Visit the official Python website at python.org/downloads to download the Python installer for your operating system.

Step 2: Run the Installer

Windows

  1. Double-click the downloaded installer.
  2. Check the box that says “Add Python X.X to PATH” (where “X.X” is the Python version).
  3. Click “Install Now.”

macOS

  1. Double-click the downloaded package file (e.g., python-3.X.X-macosx10.X.pkg).
  2. Follow the installation prompts.

Linux

Use your system’s package manager to install Python. For example, on Debian-based systems like Ubuntu, you can use:

sudo apt-get update
sudo apt-get install python3

Step 3: Verify Installation

To verify that Python has been installed successfully, open a terminal or command prompt and run:

python --version

This should display the installed Python version.

Congratulations! You’ve successfully installed Python on your system. You can now start writing and running Python programs.

← Back to Blog