Because the online teaching materials 2, 3 mixed, always want to follow the others a stroke of doing, so for the environment there is almost obsessive-compulsive requirements. Beginners, no special research version of the difference, and compatibility issues, directly to do is.
Since the first habit problem, has been the most stupid way to learn Python, manual setup is cumbersome to simply write a batch, one key to solve the problem of the environment.
Python27,python34, editor with the Gvim, on the gvim to have a Python-based settings just good, online a lot of tutorials.
@echo Offecho==============================echo Input Number:2, enter the PYTHON27 environment echo input number:3, enter the PYTHON34 environment echo==============================Set/P vp=Please enter a number:if/I%vp%=="2" GotoV2if/I%vp%=="3" GotoV3:v2Setpath=c:\python27\; c:\python27\scripts;%path%start cmd/k Pythonstart cmd/k Gvimexit:v3Setpath=c:\python34\; c:\python34\scripts;%path%start cmd/k Pythonstart cmd/k Gvimexit:: The following two lines are useless, debug command line use::p ause>Nul::exit
Save as a bat file.
The original system environment variable contains the path of the Gvim, so there is no change here.
Of course, Python, and vim installation path is not the same, need targeted modification.
Pending improvement ....
Conversion between Python2 and Python3