Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 526
WhatIsName Avatar asked Mar 17 '13 00:03

WhatIsName


People also ask

What version of Python is preinstalled on Mac?

Getting and Installing MacPython. macOS used to come with Python 2.7 pre-installed between versions 10.8 and 12.3. You are invited to install the most recent version of Python 3 from the Python website (https://www.python.org).

Does macOS have Python preinstalled?

Python comes pre-installed on Mac OS X so it is easy to start using. However, to take advantage of the latest versions of Python, you will need to download and install newer versions alongside the system ones. The easiest way to do that is to install one of the binary installers for OS X from the Python Download page.


1 Answers

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.

like image 154
Jonathan Vanasco Avatar answered Oct 24 '22 13:10

Jonathan Vanasco