How do I set macport python to be default?

Dan Ports dports at ambulatoryclam.net
Tue Dec 22 16:33:02 PST 2009


On Tue, Dec 22, 2009 at 05:53:13PM +0100, Christopher Brewster wrote:
> PATH=/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin
> 
> $ whereis python
> /usr/bin/python

Although this is probably not the solution to your actual problem
(since the wrong python is apparently being started), you should test
it with 'which python' rather than whereis -- whereis searches the
standard path settings, and which searches your actual PATH.

Dan

-- 
Dan R. K. Ports                              <dports at ambulatoryclam.net>
Research Henchman
Massachusetts Institute of Technology                     <drkp at mit.edu>
Computer Science and Artificial Intelligence Lab    <drkp at csail.mit.edu>                            


More information about the macports-users mailing list