default behavior:

dos

1

powershell2

python can only be run from the cli by navigating to the folder where it is installed, the goal here is to run it from any directory

..

open ‘python’ and check the installation path for each version3

python2:

5

here, the windows title itself shows the installation path, so running the sys commands is only optional

python3:

4

the installation paths for both versions 2&3 are now known, copy those – it has two backward slashes, a single slash is only required

now it’s time to alter the ‘PATH’ system variable678

the copied entries (installation paths) to be added here9

one entry for python2, and the second one for python3

after this is saved, the command prompt can now call python directly1011

but since both python2 and python3 have the same .exe file which is python, the .exe file for python3 could be renamed to differentiate between python2&3

12

1314

--end-of-document--