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>If the current default windows application for <code>.py</code> files is currently <code>python2</code> (i.e. <code>C:\python27\python.exe</code>) and not the new <code>py.exe</code> launcher, you can just change the default windows application for the file type.  Right-click on file -> properties -> click the change button for default application and change it to the python3 executable.</p>

<p>If the default application for the file is the <code>py.exe</code> windows launcher, you can add a shebang line in your scripts to force the python executable and the launcher should respect it.  Add this as the first line of your file</p>

<pre><code>#!C:\python3\python.exe
</code></pre>

<p>If you're python3 installation path is different, make sure to use that instead.</p>

python python-2.7 python-3.4