首页 > python3如何卸载(mac)

python3如何卸载(mac)

python.org下载的dmg安装了python3.5
想要卸载原来安装的3.4,但没发现什么标准的方法
suspicious package是一种方法,但是难道我还要去找当初安装3.4的那个包?

另外一般人是怎么安装python的?是否用brew安装python3比较好?

另外以下两个链接指向不同有何差别?我看了下这两目录下都有python3.5和python3.4

localhost:~ htea$ which python3.5
/usr/local/bin/python3.5
localhost:~ htea$ which python3.4
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4

官方说明: https://docs.python.org/3/using/mac.html#getting-and-installing-macpython

A framework /Library/Frameworks/Python.framework, which includes the Python executable and libraries. The installer adds this location to your shell path. To uninstall MacPython, you can simply remove these three things. A symlink to the Python executable is placed in /usr/local/bin/.

简单来说就是


参考python文档的macpython install说明结合suspicious package的安装文件分析,
手动删除了
/Library/Frameworks/Python.framework 下py3.4版本目录
/usr/local/bin/ 下诸多文件
由于我安装了py3.5,其和py3.4在/usr/local/bin/目录下有很多重合的文件,所以删除起来还得判断下。。

【热门文章】
【热门文章】