Created
October 16, 2018 17:37
-
-
Save phdesign/f53fb737bb85fc6fe15234ebd57e868e to your computer and use it in GitHub Desktop.
Python on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Place this in C:\Python27\python2.bat | |
@echo off | |
set OLDPATH=%PATH% | |
path C:\Python27;%PATH% | |
python.exe %* | |
path %OLDPATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Place this in C:\Python37\python3.bat | |
@echo off | |
set OLDPATH=%PATH% | |
path C:\Python37;%PATH% | |
python.exe %* | |
path %OLDPATH% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming both
C:\Python27
andC:\Python37
are on PATH, you can now usepython2
orpython3
to start the correct version.