Mac卸载Python
推荐使用 Homebrew 来安装第三方工具
自己安装的python散落在电脑各处,删除起来比较麻烦
今天在此记录一下删除的过程(以Python3.6为例)
删除Python 3.6 framework
1 sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.6
删除Python 3.6 应用目录
1 sudo rm -rf "/Applications/Python 3.6"
删除/usr/local/bin 目录下指向的Python3.6的连接
1 cd /usr/local/bin/ 2 ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/3.6' | awk '{print $9}' | tr -d @ | xargs rm