Execute python 3 not python 2
<p>I have installed python 2 after installing python 3.And now when I executing my python file by clicking on file (not by cmd) its run python 2 ,but I want python 3.
I have tried script:</p>

<pre><code>import sys
print (sys.version)
</code></pre>

<p>output was:</p>

<pre><code>2.7.11
</code></pre>

<p>Can someone help me to make python 3 default on my pc. So when i run my file,it execute Python 3.
Sorry for bad English.</p>

<p>On <code>cmd</code> you can do <code>py -3</code> for python 3 and <code>py -2</code> for 2 but for click-starting the simplest way is to include a line <code>#! python2</code> or <code>#! python3</code>as first line in file.</p>

<p>You were on the right trach - it is mentioned in <a href="https://www.python.org/dev/peps/pep-0397/" rel="nofollow">PEP 397</a> in section "Shebang line parsing" </p>

python python-2.7 python-3.4