How to Install Python (With or Without Crying)
With a bit of history, humor, and installation steps for Windows, macOS, and Linux.
Before you install Python and become a keyboard wizard, let’s take a tiny trip back in time...
A Brief and Slightly Dramatic History of Python
Once upon a time (specifically in 1989), a Dutch programmer named Guido van Rossum got really bored during Christmas and decided to create a programming language.
But instead of making it cryptic and scary like C++ (aka "Code with Crying"), he wanted something simple, fun, and actually readable by humans.
And so, Python was born.
(No snakes involved — he named it after Monty Python’s Flying Circus, a British comedy show. Because why not.)
Fast forward to today, Python is:
- Used by NASA 🚀, Google 🌍, and Netflix 🍿.
- Loved by beginners, professionals, and that one guy in your office who won’t shut up about automation.
So now you’re probably thinking:
"Cool story, but where’s the actual install guide?!"
Buckle up, code cadet. Let’s do this.
😌 Is Installing Python Easy?
Short answer: Yes.
Long answer: Yes, but only if you follow instructions and don’t randomly click 'Next > Next > Finish' like it’s Minesweeper.
Let’s break it down by operating system: Windows, macOS, and Linux — because every hero uses a different sword.
i): Windows: The Checkbox of Destiny
- Go to the official download page and grab the latest Python 3 installer for Windows.
- 🔥 MOST IMPORTANT STEP:
✅ Check the box that says “Add Python to PATH” before clicking install.
Forget this and you'll summon ancient errors from the underworld. - Click “Install Now”, wait for the progress bar to fill like your confidence, and boom — Python is yours.
- Open Command Prompt and test it:bash
python --version
You should see something like Python 3.x.x
. If not… did you check the box? 😬
ii) macOS: The Brew-tiful Way
You might already have Python 2.x pre-installed. Ignore it — it’s a fossil. Let’s get the fresh Python 3 using Homebrew (macOS's vending machine for developers):
First, install Homebrew if you haven’t:
bash/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Now install Python 3:
bashbrew install python
Test it:
bashpython3 --version
Want to run scripts with
python
instead ofpython3
? You can alias it:bashecho "alias python=python3" >> ~/.zshrc source ~/.zshrc
Congratulations, Mac mage. You now have Python and a cool terminal vibe.
iii) Linux: The Hacker Aesthetic
On most Linux distros, Python 3 is already installed — but let’s be sure.
Ubuntu/Debian:
sudo apt update
sudo apt install python3 python3-pip
Fedora:
sudo dnf install python3
Arch:
sudo pacman -S python
Check the version:
python3 --version
Optional but cool:
alias python=python3
Because typing extra characters is so pre-2020.
💀 Common Mistakes (and How to Survive Them)
Didn’t check “Add to PATH” on Windows? Reinstall and check it. Yes, again. Yes, it matters.
Typing
python
vspython3
: Just go withpython3
unless you've aliased it. Don’t fight the shell.Still getting Python 2? That’s the ghost of the past. Ignore it or banish it if you’re brave.
🧪 Verify That Python Is Ready
Run the Python interpreter:
python3
You should get:
Python 3.x.x
>>>
That >>>
prompt means Python is listening. Try this:
print("Hello, human!")
If your terminal responds like a friendly chatbot, then congrats: You're officially ready to write code! 🎉