Add Python To Path ((link)) -

where python

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. add python to path

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 If Python’s installation folder isn’t in

source ~/.bashrc Run this in your terminal: You’ve just installed Python

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).

py --version If that works, you can use py instead. But learning to manage PATH is still worth it. Adding Python to PATH is a one‑time, 30‑second task that saves you hours of confusion. Once it’s done, you can run Python, pip , and your scripts from any terminal – exactly as intended.