I'm looking for a way to cleanly uninstall all versions of python on OS X 10.10 except the default version that followed with the Mac. How do I proceed?
Currently I've some weird behaviour. When typing which -a python
I get the following output:
/Users/harisfawad/anaconda/bin/python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/local/bin/python
/usr/bin/python
Why doesn't the default version of python in /System/Library/.../
show up here? I can locate that version in Finder, so I know that it isn't deleted.
Also, echo $PYTHONPATH
returns an empty line.
Can I just go ahead and delete all these folders and expect the default version to run correctly?
I've read a similar inquiry here http://bugs.python.org/issue7107 but I'm not sure if this is still applicable to python versions 2.7/3.4.
This is also a similar question How to uninstall Python 2.7 on a Mac OS X 10.6.4? But again, I don't want to be careless and do the uninstalling before making sure that the system provided version works.
UPDATE: When running brew doctor
I get this Warning: "config" scripts exist outside your system or Homebrew directories.
And it goes on listing the "config" files in /.../anaconda/bin
and in /Library/.../bin
.
UPDATE2: I've successfully gone back to the default version of python that was included in OS X. All the above versions of python where moved to trash, except /usr/bin/python
. Thanks, @rhashimoto and @PadraicCunningham!