win用批处理切换python2和python3

切换成 python2

setx PYTHON_PATH "C:\Python\Python27"
set PATH=%PATH%
echo %PATH%

=================================

切换成python3

setx PYTHON_PATH "C:\Python\Python35;C:\Python\Python35\Scripts;"
set PATH=%PATH%

猜你喜欢

转载自my.oschina.net/u/4000302/blog/2963847