Step-by-step guide to install Python on your computer

๐ŸชŸ For Windows Users

โœ… Step 1: Download Python

  1. Go to the official website:
    ๐Ÿ‘‰ https://www.python.org/downloads

  2. Click the yellow โ€œDownload Python X.X.Xโ€ button (latest version).

  3. Save the file to your computer.

โœ… Step 2: Run the Installer

  1. Double-click the downloaded .exe file.

  2. IMPORTANT! Check the box that says:
    โœ… “Add Python to PATH” (at the bottom of the installer).

  3. Click “Install Now”.

  4. Wait a few minutes while it installs.

โœ… Step 3: Verify Installation

  1. Open the Command Prompt (Search for cmd).

  2. Type:

    css
    python --version
  3. You should see something like:

    nginx
    Python 3.X.X

If that works โ€” you’re done! ๐ŸŽ‰

๐ŸŽ For macOS Users

โœ… Step 1: Check if Python is Already Installed

  1. Open Terminal.

  2. Type:

    css
    python3 --version

    If you see a version like Python 3.11.4, you’re good. If not, continue below.

โœ… Step 2: Install with Homebrew (Recommended)

If you donโ€™t have Homebrew, install it first:

bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then, install Python:

bash
brew install python

โœ… Step 3: Verify Installation

In Terminal, type:

css
python3 --version

You should see Python’s version. Done!

๐Ÿง For Linux Users (Ubuntu/Debian)

Python often comes pre-installed.

โœ… Step 1: Check Version

Open Terminal and type:

css
python3 --version

โœ… Step 2: Install (if missing)

If not installed:

bash
sudo apt update
sudo apt install python3

To install pip (Pythonโ€™s package manager):

bash
sudo apt install python3-pip

๐Ÿงช Test Python is Working

You can test Python with a simple program:

โœ… Step 1: Open terminal or command prompt.

Type:

nginx
python

(or python3 on Mac/Linux)

Youโ€™ll see:

python
>>>

โœ… Step 2: Type this:

python
print("Hello, World!")

If you see:

Hello, World!

Congratulations โ€” Python is working! ๐Ÿ๐ŸŽ‰

Leave a Comment