How to Add Python to the Windows PATH variable

  1. Search for python.exe, right-click and open file location.
  2. Copy the location path.
  3. Run dialog SystemPropertiesAdvanced.
  4. Click Environment Variables....
  5. In User variables section, click New.
  6. Type Path to the Variable name: field and paste the python.exe's location path to the Variable value: field.
  7. Click OK.
  8. In System variables section, look for the Path Variable.
  9. Select it and click New.
  10. In the Edit environment variable window, click New.
  11. Paste the python.exe's location path and click OK to close the Edit environment variable window.
  12. Click OK to close the Environment Variables window.
  13. Click OK to close the System Properties window.