python - How to run programs in python2 and python3 -


i have python 2.6.6 , python 3.1.3 installed on machine (windows vista 64 bit) path variable includes directory of both versions. how can specify python want run program in. instance, if want run program in python 3, works if want run different program in python2 syntax error. how can run python 2 program in cmd?

typing python in command line, python 3.1.3 1 shows up.

you can specify version in executable name python2.6 , python3.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -