前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >MAC卸载python

MAC卸载python

作者头像
week
发布2018-08-24 14:46:17
9870
发布2018-08-24 14:46:17
举报
文章被收录于专栏:用户画像用户画像

官网介绍:https://docs.python.org/3/using/mac.html#getting-and-installing-macpython

代码语言:javascript
复制
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/.
代码语言:javascript
复制
The Apple-provided build of Python is installed in /System/Library/Frameworks/Python.framework and /usr/bin/python, respectively.
You should never modify or delete these, as they are Apple-controlled and are used by Apple- or third-party software. 
Remember that if you choose to install a newer Python version from python.org, 
you will have two different but functional Python installations on your computer, 
so it will be important that your paths and usages are consistent with what you want to do.

简单来说就是

  • 删除 /Library/Frameworks/Python.framework
  • 删除 /usr/local/bin/ 下的 python 链接(symlink)

注意:苹果系统需要python的支持,无论如何不要修改删除这两个文件夹

/System/Library/Frameworks/Python.framework and /usr/bin/python.

最后还需要删除Application下的python文件夹

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2017年12月03日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档