Why doesn't Python install in the correct directory?

Discussion in 'Mac Apps and Mac App Store' started by Sic, May 31, 2008.

  1. Sic macrumors 6502

    Joined:
    Oct 26, 2005
    Location:
    Southampton UK
    #1
    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 :)
     
  2. Sic thread starter macrumors 6502

    Joined:
    Oct 26, 2005
    Location:
    Southampton UK
    #2
    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 :)
     

Share This Page