🐍 Python 3.12 Setup Guide

🔹 macOS Installation

  1. Install Homebrew (if not already installed):

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

brew update
  1. Install Python 3.12:

brew install python@3.12
  1. Link Python 3.12 (Optional if multiple Python versions installed):

brew link python@3.12 --force
  1. Verify Installation:

python3 --version


✅ Method 2: From Official Installer

  1. Install: Run the .pkg installer and follow instructions.

  2. Verify:

  1. (Optional) Add to path if python3.12 not recognized:


🔹 Windows Installation

✅ Using Official Installer

  1. Run Installer:

    • Check: ✅ “Add Python 3.12 to PATH”

    • Click “Customize installation” (recommended) or “Install Now”

  2. During install:

    • Optionally enable pip, tcl/tk, IDLE, and Add Python to environment variables

  3. Verify Installation:

    Open Command Prompt (Win + R → cmd) and run:


✅ Post-Installation (All OS)

  1. Check pip:

  1. Upgrade pip (Optional):

  1. Set Up Virtual Environment:

Last updated