๐ช For Windows Users
โ Step 1: Download Python
-
Go to the official website:
๐ https://www.python.org/downloads -
Click the yellow โDownload Python X.X.Xโ button (latest version).
-
Save the file to your computer.
โ Step 2: Run the Installer
-
Double-click the downloaded
.exe
file. -
IMPORTANT! Check the box that says:
โ “Add Python to PATH” (at the bottom of the installer). -
Click “Install Now”.
-
Wait a few minutes while it installs.
โ Step 3: Verify Installation
-
Open the Command Prompt (Search for
cmd
). -
Type:
-
You should see something like:
If that works โ you’re done! ๐
๐ For macOS Users
โ Step 1: Check if Python is Already Installed
Open Terminal.
Type:
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:
Then, install Python:
โ Step 3: Verify Installation
In Terminal, type:
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:
โ Step 2: Install (if missing)
If not installed:
To install pip (Pythonโs package manager):
๐งช Test Python is Working
You can test Python with a simple program:
โ Step 1: Open terminal or command prompt.
Type:
(or python3
on Mac/Linux)
Youโll see:
โ Step 2: Type this:
If you see:
Congratulations โ Python is working! ๐๐