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

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

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

reply all(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, 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/

    简单来说就是
    删除 /Library/Frameworks/Python.framework🎜🎜
  • 🎜删除 /usr/local/bin/ 下的 python 链接(symlink)🎜🎜 🎜
阿神

Refer to the macpython install instructions of the python document combined with the installation file analysis of the suspicious package.
Manually deleted many files under the py3.4 version directory
/Library/Frameworks/Python.framework
/usr/local/bin/ due to my installation py3.5, which has many overlapping files with py3.4 in the /usr/local/bin/ directory, so you have to make a judgment before deleting them. .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template