How do I uninstall python from OSX Leopard so that I can use the MacPorts version?
问题 I want to use the macports version of python instead of the one that comes with Leopard. 回答1: 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 回答2: 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