close

From:

- http://stackoverflow.com/questions/3819449/how-to-uninstall-python-2-7-on-a-mac-os-x-10-6-4

- https://docs.python.org/3/using/mac.html

----------------------------------------------------------------------------------------------

# Do not touch Mac-built-in system python

- The stuff inside /System/Library/Frameworks/Python.framework and /usr/bin/python is Mac-bult-in Python so never touch it

# Uninstall self-installed python

  ## Remove symbolic links under /usr/local/bin

  - $ ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' => List symbolic files to Python2.7

  - Delete listed file

  ## Remove Python

  -  $ sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7

  - $ sudo rm -rf "/Applications/Python 2.7"

 ## Cleaup PATH

 - Delete /Library/Frameworks/Python.framework/Versions/2.7 from the PATH emviroment file

   like, ~/.bash_login, ~/.bash_profile, ~/.cshrc, ~/.profile, ~/.tcshrc, and/or ~/.zprofile

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Foxbrush 的頭像
    Foxbrush

    Foxbrush

    Foxbrush 發表在 痞客邦 留言(0) 人氣()