The PATH is the system variable that your operating system uses to locate needed executables from the command line window.
The PATH system variable can be set using System Utility in control panel on Windows.
- Drag the Mouse pointer to the Right bottom corner of the screen where the Windows icon is and click on it if necessary.
- In the Search box type: Control Panel
- Click on -> Control Panel -> System -> Advanced
- Click on Environment Variables button
- (a new window should open)
- under System Variables, find PATH, and click on it.
- (the PATH field should become editable)
- Insert your cursor into the PATH field, and using the arrow keys, navigate to the end of the PATH
- type a
;
at the end of the PATH - then, type or paste in the file path of where your Python 3 is installed on your computer. e.g.
C:\Program Files\Python 3.x
orC:\Program Files(x86)\Python 3.x
(note thex
will need to match your version of Python) - next, type another
;
at the end of the PATH - then, type or paste in the file path of the Python 3 Scripts directory. e.g.
C:\Program Files\Python 3.x\Scripts
orC:\Program Files(x86)\Python 3.x\Scripts
(note thex
will need to match your version of Python) - click the 'Apply' and 'OK' buttons to save your change.
- close the Environment Variables window and the Control Panel window.
- if you have any Command prompt windows open, close them.
- Then re-open a command prompt window
- (this new command prompt window should have that changes to the PATH)
- verify this change by typing the following command:
echo %PATH%
- it should print out your path. It should now contain the Python 3 file pathes.