Aug-17-2019, 05:03 PM
If this is *your* machine, then do yourself a favor and install Python to C:\Python27 and C:\Python37. Pip is usually in the \pythonxx\scripts directory.
You need to add these to your path. Do this in Conjtrol Panel/System/look for Environment, and use system rather than user settings. C:\Python37;C:\Python37\scripts;C:\Python27;C:\Python27\scripts;
Do yourself a favor and copy Python37.exe to python3.exe and pip.exe to pip3.exe.
And do likewise with Python 2.7 . (Use pip2)
Then in your scripts, at the shebang use:
#!/env python3 for 3.7
#!/env python2 for 2.7
Pip is not a native part of python, and was bolted on much later....
It gets confusing because in many systems, including Debian here, pip will always default to Python 2.x
You can also try experimenting with symlinks to dirs already on your path, but I've run into problems with this on Anaconda.
You need to add these to your path. Do this in Conjtrol Panel/System/look for Environment, and use system rather than user settings. C:\Python37;C:\Python37\scripts;C:\Python27;C:\Python27\scripts;
Do yourself a favor and copy Python37.exe to python3.exe and pip.exe to pip3.exe.
And do likewise with Python 2.7 . (Use pip2)
Then in your scripts, at the shebang use:
#!/env python3 for 3.7
#!/env python2 for 2.7
Pip is not a native part of python, and was bolted on much later....
It gets confusing because in many systems, including Debian here, pip will always default to Python 2.x
You can also try experimenting with symlinks to dirs already on your path, but I've run into problems with this on Anaconda.