Add Python To Path [extra Quality] | How To

You open your command prompt (Command Prompt on Windows, Terminal on macOS/Linux), type python --version , and get slapped with an error: ‘python’ is not recognized as an internal or external command, operable program or batch file. Don’t panic. You didn’t break anything. Your computer just doesn’t know where to look for Python. The solution? Adding Python to your system’s PATH. Think of the PATH as your computer’s “phonebook” for commands. It’s a list of directories (folders) that your operating system searches through every time you type a command into the terminal.

Now go ahead—open that terminal, type python , and start building something awesome. Have a Python PATH horror story or a clever trick? Drop it in the comments below! how to add python to path

If you’re new to Python, you’ve probably seen this frustrating scene before: You open your command prompt (Command Prompt on