title: how to make python script self-executable
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3400381/calling-a-python-script-from-command-line-without-typing-python-first">Calling a python script from command line without typing &ldquo;python&rdquo; first</a>  </p>
  </blockquote>
  
  
  
  <p>I've tried   </p>
  
  <pre><code>bash$ chmod +x script.py  
  </code></pre>
  
  <p>doesn't work. I also remember to put  </p>
  
  <pre><code>#!usr/bin/env python  
  </code></pre>
  
  <p>at the beginning of the script.</p>
  
  <pre><code>bash$ ./script.py  
  </code></pre>
  
  <p>Does nothing, it just changes my cursor to a cross lol </p>
  
  <p><strong>UPDATE</strong>: I've fixed  </p>
  
  <pre><code>#!/usr/bin/python    
  </code></pre>
  
  <p>i've also tried  </p>
  
  <pre><code>chmod a+x script.py   
  </code></pre>
  
  <p>still nothing. My script has import commands and uses sys.argv...I've followed the instruction on this <a href="http://homepage.mac.com/andykopra/pdm/tutorials/making_python_scripts.html" rel="nofollow noreferrer">link</a> (look at the end of the page). Nothing works  </p>