You’ve just installed Python. You open your terminal, type python --version , and get: 'python' is not recognized as an internal or external command Frustrating, right? This almost always means one thing: Python is not in your system’s PATH .

where python

python --version 💡 Re-run the installer and check “Add Python to PATH” – it’s the easiest fix. macOS (Intel & Apple Silicon) If you installed Python via Homebrew :

In this post, I’ll explain what PATH is, why Python needs to be there, and how to fix it on Windows, macOS, and Linux. The PATH is an environment variable that tells your operating system where to look for executable programs. When you type a command like python , your system searches through every folder listed in PATH – in order – until it finds python.exe (or the Python binary on Mac/Linux).

source ~/.bashrc Run this in your terminal:

If Python’s installation folder isn’t in PATH, your terminal simply gives up and throws an error. On Windows , the Python installer has a checkbox at the very bottom of the first screen: ✅ Add Python to PATH It’s unchecked by default. Many people rush through the installation and miss it.

stay in the loop...

Join Pinoy Stop community and be the first to receive regular updates on Filipino Events, Wellington survival tips and other information for Filipinos living, working, visiting and studying in New Zealand. LIKE our Facebook page or Follow Us on Twitter.

Pinoy Stop FB Pinoy Stop Twitter Pinoy Stop Youtube Pinoy Stop RSS feed
Information compiled by: PINOY STOP | CONTACT US
add python to path

afdu

afdu is a talented young blogger based in New Zealand. She is currently one of Pinoy Stop NZ's resident writers. She loves drawing, reading, writing, playing the drums and listening to music.

Leave a Reply

Your email address will not be published. Required fields are marked *