So running python command will launch python 2.7 (if Python 3.5 the same command would launch Python 3.5).Note that Python 2.7 is first and Python 3.5 second. PATH=C:\Program Files\Microsoft MPI\Bin\ C:\Python27 C:\Program Files\Python_3.6\Scripts\ C:\Program Files\Python_3.6\ C:\ProgramData\Oracle\Java\javapath C:\Program Files (x86)\Common Files\Intel\Shared This is how my PATH variable starts with: In my example I have Python 2.7.14 installed first and Python 3.5.3. the first Python 3.x installation program found in your PATH will be selected) run Python 3.x scripts using the command: or py -3 (ie.the first Python 2.x installation program found in your PATH will be selected) run Python 2.x scripts using the command: py -2 (Python 3.x functionality) (ie. No matter the order of "pythons" you can: Consecutive python programs (increasing order that their directories are placed in PATH) will be chosen like so: The one you add first will be selected when you type python. In other words, add the Python directories manually. Running simply the command python the executable that is first met in PATH will be chosen for launch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |