Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Sic

macrumors 6502
Original poster
Oct 26, 2005
321
0
Southampton UK
So, I've just installed some dependencies to python, and when I create a new script thus:

#!/usr/bin/python

I find that it doesn't recognise the modules I just installed. Upon further inspection (pydoc-ing the modules) I find they're installed in a completely different directory! Then I find that when I run "python" in Terminal, it's using one in /Library/Frameworks/Python.framework/Versions/2.5/! Is there a way of getting the latest version of python to install in /usr/bin/python rather than some crazy other directory? It's not exactly brilliant for portability on other systems if I have to change the directory at the top of the script!

Thanks :)
 
grr, think I just answered my question - the one in /usr/bin/ is an alias. Change where it goes and oddly enough it works!

this can be deleted :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.