Step by step instructions to fix “Python is not recognized as an internal or external command” error.
U Love Robotics? Show off your Love wearing these T-Shirts and Hoodies
Support my Channel & Get Early Access to my contents for only $1 per month.
$1: Early Access to all of my YouTube Videos
$3.99: Exclusive Access to “How to Become a Robotics Engineer” Videos
$49.99: 1×1 Mentorship
Setting environment variablesWindows has a built-in dialog for changing environment variables (following guide applies to XP classical view): Right-click the icon for your machine (usually located on your Desktop and called “My Computer”) and choose Properties there. Then, open the Advanced tab and click the Environment Variables button.
In short, your path is:
My Computer ‣ Properties ‣ Advanced ‣ Environment Variables
In this dialog, you can add or modify User and System variables. To change System variables, you need non-restricted access to your machine (i.e. Administrator rights).
Another way of adding variables to your environment is using the set command:
To make this setting permanent, you could add the corresponding command line to your autoexec.bat. msconfig is a graphical interface to this file.
Viewing environment variables can also be done more straight-forward: The command prompt will expand strings wrapped into percent signs automatically: