Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

macports python_select command not found

Tags:

macports

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.

like image 485
wmfox3 Avatar asked May 24 '11 20:05

wmfox3


2 Answers

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 


like image 96
JackFrost Avatar answered Nov 01 '22 14:11

JackFrost


See answer to subsequent reframing of question:

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

like image 44
wmfox3 Avatar answered Nov 01 '22 15:11

wmfox3