放弃
首先,让我明白一点:我没有触及系统捆绑的Python.我知道让它一个人呆着是很重要的.事实上,我已经做到了. ?
背景
适用于Mac的Python官方发行版有一个非常方便的安装程序. (这是安装人员的聪明才智,这使得我可以在我的系统上放置更新版本的Python而不会搞砸系统捆绑版本.谢谢,Pythonistas!)
现在,我的主要Python安装是2.7.由于它是最后的2.x版本,所以没关系.
但是,我很想知道Python 3,所以我安装了它.它与Python 2完美搭配.事实上,Python 3是选择加入,这正是我想要的. “像宣传的那样工作.”
现在,奇怪的部分……
我有2个已安装的Python 3版本! Python 3.1和Python 3.2的安装程序都安装在不同的位置.所以,现在我有Python 3.1,我从来没有打算使用它.而且由于安装程序很棒(我不是很讽刺;我真的很感动,特别是因为大多数编程语言需要从源代码编译),它还在/ Applications中创建了一些方便实用的条目.
但是因为我已经安装了更新的Python 2和两个版本的Python 3,这意味着我现在拥有:
> / Applications / Python 2.7,
> / Applications / Python 3.1,和
> / Applications / Python 3.2
把招工广告!
我只想抛弃Python 3.1.
我想对此非常彻底.没有遗忘的目录埋在/ Library / *(或其他)下.
有人知道怎么做吗?
解决方法:
从python docs注意到他们似乎有硬编码2.5而不是当前版本,并没有那么好写
What you get after installing is a number of things:
A MacPython 2.5 folder in your Applications folder. In here you find
IDLE, the development environment that is a standard part of official
Python distributions; PythonLauncher, which handles double-clicking
Python scripts from the Finder; and the “Build Applet” tool, which
allows you to package Python scripts as standalone applications on
your system.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/.
所以删除
<code>/Applications/Python 3.1 /Library/Frameworks/Python.framework/Versions/3.1 /usr/local/bin/python31 (I use a different install so this might be python3.1 or similar) </code>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!