title: Python shebang problems with importing modules (and choosing the correct interpreter)
body: <p>I've googled and searched stack overflow for solutions, but I can't seem to find any way to fix this. Basically, this is my problem: I'm trying to use the Image/PIL Python module, which comes preinstalled with Enthought's distribution, but not with the default OSX python distribution. </p>
  
  <p>Note that the PIL/Image import does work on the enthought shell. </p>
  
  <p>My shebang is</p>
  
  <pre><code>#!/usr/local/bin/python
  </code></pre>
  
  <p>Is there an easy way to change the python version I'm using?</p>
  
  <p>Thank you very much for any help.</p>
  
  <p>EDIT: I found a solution. By typing "which python" in bash (without the quotes), I found the directory where the enthought distribution was stored. 
  (/Library/Frameworks/Python.framework/Versions/Current/bin/python) for me. Then, I just had to change the hashbang to </p>
  
  <pre><code>#!/Library/Frameworks/Python.framework/Versions/Current/bin/python
  </code></pre>