2014-10-21 65 views
0

如何在命令提示符中爲Python 2和3設置永久路徑,以便我可以在每次打開命令窗口時調用命令窗口,即用於python 2解釋器的'python2'或用於python 3解釋器的'python3'Python雙重安裝

+2

你有什麼操作系統? – 2014-10-21 21:24:01

+0

對於Windows 7: http://stackoverflow.com/questions/3809314/how-to-install-both-python-2-x-and-python-3-x-in-windows-7 – jgritty 2014-10-21 21:26:29

+0

@ SimeonVisser Windows 7旗艦版 – user3731606 2014-10-21 21:27:45

回答

0

創建一個python2.bat和一個python3.bat文件在你的路徑上(可以在你的主python文件夾中)。該文件只包含相關python.exe的位置,例如

C:\Programs\Python26\python.exe %*