woensdag 24 april 2013

python uninstall osx


where is my python

which python
which python2.7

remove python in Applications

  1. remove the Python 2.7 framework
    sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
  2. remove the Python 2.7 applications directory
    sudo rm -rf "/Applications/Python 2.7"
  3. remove the symbolic links in /usr/local/bin that point to this python version seels -l /usr/local/bin
    remove python installed with pkg installer
    pkgutil --pkgs | grep org.python.Python
    
    
    remove python installed with homebrew
    
    
    remove python installed with fink
    python is installed in /sw directory
    sudo -r rm /sw
    sudo fink uninstall python
    remove python installed with macport
    python is installed in /opt directory
    port -y -u uninstall
    sudo port uninstall python27
    sudo port -f uninstall --follow-dependents python27
    

    extra work
    remove the symbolic links in /usr/local/bin that point to this python version seels -l /usr/local/bin
    sudo rm /usr/bin/python2.7
    
    
    .profile or .bash_profile 
    remove the python stuff in:
    open -t ~/.bash_profile
    
    
    
    
    
    

Geen opmerkingen:

Een reactie posten