macports python_select command not found

wmfox3 picture wmfox3 · May 24, 2011 · Viewed 15.3k times · Source

I'm using MacPorts and had installed python_select to switch between 2.6 and 2.7. But for some reason I'm now getting a "command not found" error when running:

sudo python_select python26 

Possibly an issue with $PATH? Not sure where to look for it.

Answer

JackFrost picture JackFrost · Jul 30, 2011

python_select isn't a command, it is a capability added to port select.

To use it:

  1. List the available pythons to select from:

    port select --list python
    
  2. to choose a specific port (eg python26):

    port select python python26