Pito Salas <pitosa...@brandeis.edu> writes:

> I’m new to Python. I seem to have three partially installed Pythons on my Mac 
> Sierra.
>
> One from Apple
> One from Homebrew
> And one from the Python Mac installer
>
> In particular, for example, I have a python executable in /usr/bin:
>
> $ which python
> /usr/bin/python
>
> This is an actual executable not a symkink. There are a whole bunch of
> python related files in that directory:
>
> python python-config python2.6 python2.6-config python2.7
> python2.7-config pythonw pythonw2.6 pythonw2.7
>
Normally you should never touch anything in /usr/bin or /usr/lib. That is Apple 
territory.
>
> I think they all came from the python.org python installer.

If it is in /usr/bin, it shouldn't.
>
> I would like to fully uninstall the Python (and related files) that I
> got from the Mac Python Installer from the python web site. I can’t find
> up to date instructions.
>
> Does anyone know how to do this? Thanks!
>
Delete /Library/Frameworks/Python.framework/ and all links in /usr/local/bin 
and /usr/local/lib that point towards something inside that directory.

On the other hand, I find it very useful to have a Python from python.org 
installed as they are usually more up to date than the Apple supplied one. If 
you tell the installer to install the links in /usr/local, and put 
/usr/local/bin in your PATH before /usr/bin, you will use these, and Apple will 
still use their own version.
-- 
Piet van Oostrum <pie...@vanoostrum.org>
WWW: http://piet.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to