You should use:<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;env python
</code></pre>
or preferably<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;env python2
</code></pre>
or<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;env python3
</code></pre>
env supposed to always be in &#x2F;usr&#x2F;bin, while python doesn&#x27;t. On FreeBSD for example it is in &#x2F;usr&#x2F;local&#x2F;bin because it is not integral part of the OS.