title: How Should I Set Default Python Version In Windows?
body: <p>I installed <code>Python 2.6</code> and <code>Python 3.1</code> on Windows 7 and set environment variable: <code>path = d:\python2.6</code>.</p>
  <p>When I run <code>python</code> in <code>cmd</code>, it displays the python version 2.6, which is what I want! <br />
  But, when I wrote a script in a bat file and ran it, the displayed python version was 3.1.</p>
  <pre><code>import sys
  print (sys.version)
  </code></pre>
  <p>What's going on here?</p>