Set Up Python (Don’t Overthink It)
The problem...
At some point, you need to run code on your own machine.
This is where many beginners get stuck. Different systems. Different versions. Weird instructions.
It starts to feel harder than it should be.
The idea!
You don't need a perfect setup. You just need something that works.
That's it.
Making it real
Three steps. That's all.
Install Python. Write a file. Run it.
How to open a terminal
- Windows — press Win + R, type cmd, hit Enter
- macOS — press Cmd + Space, type Terminal, hit Enter
- Linux — press Ctrl + Alt + T
Step 1 — Install Python
Go to 👉 python.org and download the latest version.
Windows
- Run the installer
- Check this box: ✅ Add Python to PATH
- Click Install
macOS
Open Terminal and type:
python3 --version
If you see a version → you're good. If not, install from python.org.
Linux
Open Terminal and type:
python3 --version
If nothing shows:
sudo apt install python3
Step 2 — Write your first file
Create a file called hello.py. Inside it:
print("Hello")
Step 3 — Run it
Open a terminal in the folder where you saved the file. Then run:
python hello.py
or:
python3 hello.py
If you see:
Hello
It works.
If it doesn't work
You're probably not in the same folder as the file.
- Open the folder where
hello.pyis - Right-click → open terminal there
- Run the command again
Heads up!
- You might see both
pythonandpython3— both are normal, if one doesn't work try the other - The ✅ Add Python to PATH step on Windows is not optional — skip it and nothing works
- Don't spend time finding the "perfect" setup — if it runs, it's good enough
The mindset shift
Stop thinking: "I need to set everything up perfectly."
Start thinking: "I just need Python to run."
What you should understand now
- You don't need a perfect setup
- Python just needs to run
pythonvspython3is normal- If it works, you're good