How to Add Python to the Windows PATH variable
- Search for python.exe, right-click and open file location.
- Copy the location path.
- Run dialog SystemPropertiesAdvanced.
- Click Environment Variables....
- In User variables section, click New.
- Type Path to the Variable name: field and paste the python.exe's location path to the Variable value: field.
- Click OK.
- In System variables section, look for the Path Variable.
- Select it and click New.
- In the Edit environment variable window, click New.
- Paste the python.exe's location path and click OK to close the Edit environment variable window.
- Click OK to close the Environment Variables window.
- Click OK to close the System Properties window.