title: specify the python interpreter path in python script
body: <p>I have a python script which I am distributing in several nodes. I have python 2.6 installed in /usr/bin by default and have python 2.7 in my /opt directory in all the nodes. Now when I run the script from my current node I can set the path to python 2.7 interpreter from terminal but I am unable to manage it in the rest of the nodes where this script is getting distributed. I have added the shebang at the start of script like -</p>
  
  <pre><code>#!/opt/python2.7/bin/python 
  </code></pre>
  
  <p>But its still not working. How can I change the python interpreter/python path at the beginning of the script itself. </p>