macos - python3如何卸载(mac)
大家讲道理
大家讲道理 2017-04-17 17:21:18
0
2
603

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
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

répondre à tous(2)
巴扎黑

官方说明: 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/.

简单来说就是

  • 删除 /Library/Frameworks/Python.framework

  • 删除 /usr/local/bin/ 下的 python 链接(symlink)

阿神

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

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!