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 .
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). add python to path
source ~/.bashrc Run this in your terminal: You’ve just installed Python
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,
Did I miss your specific OS or setup? Let me know in the comments.