How to remove Python 2.5?

I recently upgraded to Mac OS 10.6 and did not understand that it comes with Python 2.6. I installed Python 2.5.4, and now this is the default Python installation. Can I remove Python 2.5.4 and save 2.6?

+3
source share
3 answers

As long as there is no uninstaller for python python.org OS X installers (because they use the standard Apple installation mechanism, which the uninstaller does not provide by default), it is easy to remove it. I have documented the complete process here , but keep in mind that it doesn't hurt to have multiple python instances installed on OS X.

, $PATH. python.org .bash_profile ( .profile), python framework bin $PATH, /usr/bin, Apple -supplied python. , , .bash_profile.pysave. diff, , , mv :

$ cd ~
$ diff .bash_profile{,.pysave}
12,16d11
< 
< # Setting PATH for MacPython 2.5
< # The orginal version is saved in .bash_profile.pysave
< PATH="/Library/Frameworks/Python.framework/Versions/2.5/bin:${PATH}"
< export PATH
$ mv .bash_profile.pysave .bash_profile

, python python2.6. (, - bash.)

, , . : python /usr/bin /System/Library/Frameworks.

+6

, .

, PATH, 2.5.4 , .

+2

Not only the path, but the link to python, as it is now resolved as python2.5, not python2.6.

0
source

Source: https://habr.com/ru/post/1724534/


All Articles