wmfox3
wmfox3

Reputation: 2221

macports python_select command not found

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.

Upvotes: 27

Views: 15588

Answers (3)

JackFrost
JackFrost

Reputation: 631

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
    


Upvotes: 63

John Hall
John Hall

Reputation: 79

Eh, on my Lion, I use:-

$ sudo port select --list python

to see available python versions, and:-

$ sudo port select python python26

No _ necessary for me! YMMV

Upvotes: 7

wmfox3
wmfox3

Reputation: 2221

See answer to subsequent reframing of question:

macports didn't place python_select in /opt/local/bin

Upvotes: 7

Related Questions