How do I uninstall python from OSX Leopard so that I can use the MacPorts version?

I have both installed: $ which python /usr/bin/python $ which python2.5 /opt/local/bin/python2.5 I also added the following line to my . Profile: export PATH=/opt/local/bin:/opt/local/sbin:$PATH.

I installed Python via MacPorts and it had no effect on any of the python* files in /opt/local/bin. They're all symlinks to the system Python. This is on Snow Leopard.

– thebossman Jan 7 at 4:35.

Don't. Apple ships various system utilities that rely on the system Python (and particularly the Python "framework" build); removing it will cause you problems. Instead, modify your PATH environ variable in your ~/.

Bash_profile to put /opt/local/bin first.

I think this is true also of different linux distro's, various library /package/software installers rely on the perl, python , ruby factory installed interpreters, you should leave them there, symlink around them – Gene T Nov 22 '08 at 19:22.

Use the python_select port to switch python interpreters. Sudo port install python25 sudo port install python_select sudo python_select python25 This will symlink /opt/local/bin/python to the selected version. Then export PATH as described above.

Python_select is now deprecated, use this instead: sudo port select python python26.

Instead of uninstalling the built-in Python, install the MacPorts version and then modify your $PATH to have the MacPorts version first. For example, if MacPorts installs /usr/local/bin/python, then modify your . Bashrc to include PATH=/usr/local/bin:$PATH at the end.

The current Macports installer does the . Profile PATH modification automatically.

I wouldn't uninstall it since many scripts will expect python to be in the usual places when they do not follow convention and use #! /usr/bin/env python. You should simply edit your .

Profile or . Bash_profile so the macports binaries are the first in your path. Your .

Profile should have this line: export PATH=/opt/local/bin:/opt/local/sbin:$PATH If not, add it in, and now your shell will search macport's bin/ first, and should find macports python before system python.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions