Mac下删除自己安装的Python

  1. 删除Python框架
    sudo rm -rf /Library/Frameworks/Python.framework/Versions/x.x
  2. 删除Python程序
    sudo rm -rf “/Applications/Python x.x”
  3. 删除/usr/local/bin目录下的Python连接

x.x为Python的版本号

This entry was posted in Mac OS X and tagged . Bookmark the permalink.

4 Responses to Mac下删除自己安装的Python

  1. 李志远 says:

    删除/usr/local/bin目录下的Python连接

    你好,上面这段话我不太懂,要删除哪些文件呢?

  2. Yucun says:

    关于第三点,大家可以参考
    http://stackoverflow.com/questions/22774529/what-is-the-safest-way-to-removing-python-framework-files-that-are-located-in-di

    我是新手,这个折腾了半天,希望对看到这个帖子得人有帮助。

  3. 子陵 says:

    第三点, 删除/usr/local/bin目录下的Python连接
    ls -l /usr/local/bin | grep ‘/Library/Frameworks/Python.framework/Versions/x.x’ | awk ‘{print $9}’ | tr -d @ | xargs rm

    删除前后可使用命令查看:
    ls -l /usr/local/bin | grep ‘/Library/Frameworks/Python.framework/Versions/x.x’

  4. Pingback: brew 不可用,重新安装

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>