1To add Python to the Windows Path, follow these steps:
2
31. Start the Run box and enter sysdm.cpl
42. In the System Properties window go to the Advanced tab and
5 click the Environment Variables button
63. In the System variable window, find the Path variable and
7 click Edit
84. Position your cursor at the end of the Variable value line
9 and add the path to the python.exe file, preceeded with
10 the semicolon character (;)
1# On linux
2$ which python; # Get Path of the executable
3$ export PATH=$PATH:{PATH_PYTHON}; # but it isn't continue
4# ----------------------
5$ which python; # Get Path of the executable
6export PATH=$PATH:{PATH_PYTHON}; # add in your ~/.bashrc or your ~/.zshrc
1Either manually change it by doing the steps for the answer by skilliboi.
2
3Or you can reinstall python and when you do that, make sure to tick the box that says:
4Add python to PATH (or something like that)