Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I used MacPorts to install a newer version of Python on my system (10.5.8 PPC), and then used the MacPorts select command to change the default invoked version of Python to the MP version. Now I want to change it back to the system version of Python, but I can't find a command to do so in the documentation.

I know all the MacPorts command did was to change a bunch of links to point at the MP version instead of the system version. Unfortunately I don't know what all the affected files are.

Does anyone know the command to reverse the setting or know the list of affected links that I would have to change?

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

Macports select can change it back.

The current macports does it using the port select command - older versions had python_select

To see the possible pythons run

port select --list python

From that list choose the one you want and change to it e.g.

sudo port select --set python python25-apple
share|improve this answer
    
I ran sudo port select --set python25-apple and got Error: The 'set' command expects two arguments: <group>, <version> –  CyberSkull Aug 24 '11 at 12:13
    
Sorry - I have edited to I think the correct command - I missed the group –  Mark Aug 24 '11 at 12:46
    
It works! Selecting 'python25-apple' for 'python' succeeded. 'python25-apple' is now active. –  CyberSkull Aug 25 '11 at 4:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.