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.
Note that the PIL/Image import does work on the enthought shell.
My shebang is
#!/usr/local/bin/python Is there an easy way to change the python version I'm using?
Thank you very much for any help.
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
#!/Library/Frameworks/Python.framework/Versions/Current/bin/python