JThree
JThree

Reputation: 2496

Remove preinstalled python from Mac OSX 10.8

I want to move to python 3.0 and therefore remove the default python 2.7 (2.6,2.5...) installation on my mac. Including all the installed packages, $PATH,...

Does the python installer from python.org oder MacPorts installer provide an uninstaller, or is there a way to do this manually?

Upvotes: 15

Views: 18015

Answers (1)

Jonathan Vanasco
Jonathan Vanasco

Reputation: 15680

That's a COMPLETELY TERRIBLE idea, and you should never do that. You're likely to break dependencies and requirements for various software that expect to find the default Python in the default location.

Install your choice of Python 3 ( MacPorts, Python.org, whatever ). Update your local $PATH variables to use that Python / PythonPath.

If you don't trust my opinion, here's what official Python.org docs say:

http://docs.python.org/2/using/mac.html

The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively. You should never modify or delete these, as they are Apple-controlled and are used by Apple- or third-party software. Remember that if you choose to install a newer Python version from python.org, you will have two different but functional Python installations on your computer, so it will be important that your paths and usages are consistent with what you want to do.

Upvotes: 39

Related Questions