Add Python To Path Official
source ~/.bashrc Run this in your terminal:
Did I miss your specific OS or setup? Let me know in the comments. add python to path
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. source ~/
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. On Windows , the Python installer has a