Re: [Pythonmac-SIG] Uninstalling
> On Jul 20, 2017, at 3:24 AM, Piet van Oostrumwrote: > > Normally you should never touch anything in /usr/bin or /usr/lib. That is > Apple territory. You can't any more. $ touch /usr/bin/just-testing touch: /usr/bin/just-testing: Operation not permitted $ sudo touch /usr/bin/just-testing Password: touch: /usr/bin/just-testing: Operation not permitted Since System Integrity Protection came out with El Capitan, unless you reboot into recovery mode and type some "void your warranty" commands into the terminal app on the recovery partition, it's simply no longer possible for 3rd-party applications and installers to write files into /usr/bin. Attempting to install over /usr/bin/python on any macOS released in the last 2 years will just fail. -glyph___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Uninstalling
Pito Salaswrites: > 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 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
Re: [Pythonmac-SIG] Uninstalling
I think the /usr/bin/python executable you’re seeing is the Apple-supplied one. Here’s what I have in /usr/bin, which is all from Apple: $ ls -l /usr/bin/pyth* -rwxr-xr-x 1 root wheel 66576 Apr 29 02:29 /usr/bin/python -rwxr-xr-x 5 root wheel925 Jul 31 2016 /usr/bin/python-config lrwxr-xr-x 1 root wheel 75 Jun 22 13:26 /usr/bin/python2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 lrwxr-xr-x 1 root wheel 82 Jun 22 13:26 /usr/bin/python2.6-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config lrwxr-xr-x 1 root wheel 75 Jun 22 13:26 /usr/bin/python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 lrwxr-xr-x 1 root wheel 82 Jun 22 13:26 /usr/bin/python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config -rwxr-xr-x 1 root wheel 66576 Apr 29 02:30 /usr/bin/pythonw lrwxr-xr-x 1 root wheel 76 Jun 22 13:26 /usr/bin/pythonw2.6 -> ../../System/Library/Frameworks/Python.framework/Versions/2.6/bin/pythonw2.6 lrwxr-xr-x 1 root wheel 76 Jun 22 13:26 /usr/bin/pythonw2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw2.7 $ Homebrew puts everything in /usr/local/bin, and I think so does the official Python Mac installer (it did when I was still responsible for it:-). > On 18 Jul 2017, at 21:37, Pito Salaswrote: > > 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-configpython2.6python2.6-config python2.7 >python2.7-config pythonw pythonw2.6 pythonw2.7 > > > I think they all came from the python.org python installer. > > 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! > > Pito Salas > > > > ___ > Pythonmac-SIG maillist - Pythonmac-SIG@python.org > https://mail.python.org/mailman/listinfo/pythonmac-sig > unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG -- Jack Jansen, , http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] Uninstalling
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-configpython2.6python2.6-config python2.7 python2.7-config pythonw pythonw2.6 pythonw2.7 I think they all came from the python.org python installer. 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! Pito Salas ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Uninstalling Python 2.6?
In article a9d9fd92-e516-4f6e-ad15-e367fb8dc...@pixane.net, Idan Gazit i...@pixane.net wrote: Hi Folks, So a while back I tried installing (mac) python 2.6 on my leopard machine, mainly to poke around. Today I'm trying out some xcode/pyobjc stuff and I've been tearing my hair out wondering why nothing works as advertised. Turns out that xcode was building against python 2.6, which doesn't have the relevant modules in its classpath (objc, for example). A little bit of digging later and it seems that the *only* version of python listed in /Library/Frameworks/Python.framework is 2.6. Oh noes! So my plea: * How do I cleanly remove the 2.6 (installed using the provided installer) installation such that I'm left with my leopard-vanilla 2.5? * What should I do about the Python.framework? I imagine that PyObjC apps require at least one version there. Did 2.6 overwrite the existing one? Can anybody tell me how to get it back or how to install the 2.5 version? You can safely delete /Library/Frameworks/Python.Framework Also look in /usr/local/bin for any files whose names start with python; delete those. The system python is in /System/Frameworks and is safe from your changes. Note that multiple versions of user-installed python can coexist. If so you may want to delete something inside of /Library/Frameworks/Python.Framework instead, but that doesn't appear to be your case. (Also if you are otherwise happy with Python 2.6 you could just use it to install the other packages you are missing. Personally I prefer using a user-installed Python for my own work, rather than cluttering up the system python with user-installed packages.) -- Russell ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] Uninstalling Python 2.6?
Hi Folks, So a while back I tried installing (mac) python 2.6 on my leopard machine, mainly to poke around. Today I'm trying out some xcode/pyobjc stuff and I've been tearing my hair out wondering why nothing works as advertised. Turns out that xcode was building against python 2.6, which doesn't have the relevant modules in its classpath (objc, for example). A little bit of digging later and it seems that the *only* version of python listed in /Library/Frameworks/Python.framework is 2.6. Oh noes! So my plea: * How do I cleanly remove the 2.6 (installed using the provided installer) installation such that I'm left with my leopard-vanilla 2.5? * What should I do about the Python.framework? I imagine that PyObjC apps require at least one version there. Did 2.6 overwrite the existing one? Can anybody tell me how to get it back or how to install the 2.5 version? My head is spinning from all the googling I have done on the subject. I'm hoping that a few well-placed words of wisdom will help me here! Yours in much confusion, Idan ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Uninstalling Python 2.6?
I'm not on my Mac right now, but I think that the system python is actually in /System/Library rather than in /Library. If that's the case, I think you can just remove /Library/Frameworks/Python and update /usr/bin/python to point to vanilla Python. I would try renaming /Library/Frameworks/Python.framework and see if this fixes your issues - if yes, you can then safely delete it. I personally use MacPorts, that installs itself in /opt/local and only fiddles with PATH, to avoid this kind of problem. Orestis On Mon, Feb 23, 2009 at 3:04 PM, Idan Gazit i...@pixane.net wrote: Hi Folks, So a while back I tried installing (mac) python 2.6 on my leopard machine, mainly to poke around. Today I'm trying out some xcode/pyobjc stuff and I've been tearing my hair out wondering why nothing works as advertised. Turns out that xcode was building against python 2.6, which doesn't have the relevant modules in its classpath (objc, for example). A little bit of digging later and it seems that the *only* version of python listed in /Library/Frameworks/Python.framework is 2.6. Oh noes! So my plea: * How do I cleanly remove the 2.6 (installed using the provided installer) installation such that I'm left with my leopard-vanilla 2.5? * What should I do about the Python.framework? I imagine that PyObjC apps require at least one version there. Did 2.6 overwrite the existing one? Can anybody tell me how to get it back or how to install the 2.5 version? My head is spinning from all the googling I have done on the subject. I'm hoping that a few well-placed words of wisdom will help me here! Yours in much confusion, Idan ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig -- ores...@orestis.gr http://orestis.gr ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] Uninstalling Python 2.6?
In article dabdc63f0902230804w56b76207xe59c2dc9cad7b...@mail.gmail.com, Orestis Markou ores...@orestis.gr wrote: I'm not on my Mac right now, but I think that the system python is actually in /System/Library rather than in /Library. If that's the case, I think you can just remove /Library/Frameworks/Python and update /usr/bin/python to point to vanilla Python. /usr/bin/python normally always points to the Apple-supplied python in /System/Library; it's not a good idea to modify it. I would try renaming /Library/Frameworks/Python.framework and see if this fixes your issues - if yes, you can then safely delete it. I personally use MacPorts, that installs itself in /opt/local and only fiddles with PATH, to avoid this kind of problem. The python.org pythons install to /Library/Frameworks/Python.frameworks/Versions/x.x and to /Applications/Python x.x, neither of which are Apple-controlled locations. The framework is totally self-contained unless you select to have the installer add symlinks to /usr/local/bin and, again, those are not Apple-controlled. So you can safely delete the versioned framework directory and/or application directory or just alter your PATH to avoid them. In *that* respect, there is no advantage to using MacPorts over python.org pythons. -- Ned Deily, n...@acm.org ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] uninstalling macpython
On 21 Feb, 2008, at 17:12, Kevin Walzer wrote: Stephen Uhlhorn wrote: Hello- How do I uninstall MacPython cleanly from my leopard system? I'd like to revert to the system python without reinstalling the entire OS. Do I just zap /Library/Frameworks/Python.Framework and fix my PATH? Or, are there other considerations? That should do it. Don't forget to remove /Applications/MacPython 2.5 and the symlinks in /usr/local/bin. Ronald smime.p7s Description: S/MIME cryptographic signature ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
[Pythonmac-SIG] uninstalling macpython
Hello- How do I uninstall MacPython cleanly from my leopard system? I'd like to revert to the system python without reinstalling the entire OS. Do I just zap /Library/Frameworks/Python.Framework and fix my PATH? Or, are there other considerations? Thanks- -stephen ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig