A Step-by-Step Guide to Installing Python

Leroy · 4 Oct 2023 · 1 min read

Python book

Image Credit: Christina Morillo

Installing Python

I use Python for most of my projects. Here is how to install it on your system.

Download Python

Go to python.org/downloads and download the installer for your operating system.

  • Windows: download the "Windows Installer" executable.
  • macOS: download the package file for the latest version.
  • Linux: Python is often pre-installed. Use your system's package manager if not.

Run the Installer

Windows

  1. Double-click the installer.
  2. Check "Add Python X.X to PATH".
  3. Click "Install Now".

macOS

  1. Open the downloaded .pkg file.
  2. Follow the prompts.

Linux

Use your package manager. On Debian-based systems like Ubuntu:

sudo apt-get update
sudo apt-get install python3

Verify Installation

Open a terminal and run:

python --version

You should see the Python version number.

related posts

04 Oct
A Step-by-Step Guide to Installing Python
Comprehensive guide to installing Python on Windows, macOS, and Linux, providing clear instructions for a smooth setup.
04 Oct
A Beginner's Guide to Installing Node.js
Step-by-step guide to installing Node.js on Windows, macOS, and Linux, ensuring a hassle-free setup for developers.
01 Apr
Using Picsum for Placeholder Images
Picsum provides placeholder photos from real images over a simple URL. The Lorem Ipsum of photos.