macos 在 mac os x 10.6.7 上卸载 python 3.2
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5621952/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Uninstall python 3.2 on mac os x 10.6.7
提问by aniketd
According to the documentation from python.org, python 3.2 install on mac os requires an upgrade to tcl/tk 8.5.9 (for use of IDLE). In my haste, I have done both. Now my friend told me that python 3 is not recommended yet because only the built-ins and a few modules have been released for 3. The stable one so far is 2.7 (especially if one wants to make extensive use of a variety of modules). My machine has both 2.6.1 and 3.2 (because some OS services make use of 2.6.1 that comes as default with the OS).
根据 python.org 的文档,在 mac os 上安装 python 3.2 需要升级到 tcl/tk 8.5.9(用于 IDLE)。匆忙中,我已经完成了这两项工作。现在我朋友告诉我,python 3还不推荐,因为3只发布了内置插件和一些模块。目前稳定的是2.7(特别是如果想大量使用各种模块) . 我的机器有 2.6.1 和 3.2(因为某些操作系统服务使用操作系统默认的 2.6.1)。
1. How do i remove 3.2 completely to avoid any compatibility issues?
1. 如何完全删除 3.2 以避免任何兼容性问题?
tcl/tk 8.5.9 was also installed and this is not the default. There was no verbose mode during installation, so I don't know whether it replaced the default one. If it did how bad can it be for the OS? and hence
tcl/tk 8.5.9 也已安装,这不是默认设置。安装的时候没有verbose模式,不知道是不是替换了默认的。如果它做了,它对操作系统有多糟糕?因此
2. If the above is really bad, how do i downgrade to the old version of tcl/tk?
2. 如果以上真的很糟糕,我如何降级到旧版本的tcl/tk?
In short, how do i bring my machine back to its original state? If anyone knows all the paths to the directories and files I can do it manually.
简而言之,如何让我的机器恢复到原来的状态?如果有人知道目录和文件的所有路径,我可以手动完成。
Thanks
谢谢
回答by adamlogan
Since Python installs using a package manager, you can use Suspicious Packageto look at the install script and where everything is installed.
由于 Python 使用包管理器进行安装,因此您可以使用Suspicious Package查看安装脚本以及所有内容的安装位置。
Be aware this is for demonstration purposes only. My environment is OSX 10.6.8 and am uninstalling python-3.2.2-macosx10.6.dmg.
请注意,这仅用于演示目的。我的环境是 OSX 10.6.8,正在卸载 python-3.2.2-macosx10.6.dmg。
sudo rm -Rfv /Library/Frameworks/Python.framework/ /Applications/Python\ 3.2/
cd /usr/local/bin/
sudo rm -fv 2to3 2to3-3.2 idle3 idle3.2 pydoc3 pydoc3.2 python3 python3-32 python3-config python3.2 python3.2-32 python3.2-config python3.2m python3.2m-config pythonw3 pythonw3-32 pythonw3.2 pythonw3.2-32 /Developer/Documentation/Python/Reference\ Documentation\ 3.2
回答by Marcos Carreira
I did the same (3.2 on a mac 10.6) and: -Moved both the Python 3.2 folder and the ActiveState ActiveTcl folder from the Applications Folder to the Trash. -Moved the Python.framework folder from the Library/Frameworks folder to the Trash.
我做了同样的事情(Mac 10.6 上的 3.2)并且: -将 Python 3.2 文件夹和 ActiveState ActiveTcl 文件夹从应用程序文件夹移动到垃圾箱。- 将 Python.framework 文件夹从 Library/Frameworks 文件夹移动到垃圾箱。
Running System profiler shows only the 2.6 version of Python.
运行 System profiler 仅显示 2.6 版本的 Python。
Marcos
马科斯
回答by struct-pack
just uninstall 3x version of python if you have already installed it. Eclipse has that option when you click "see whats already installed". Install later 2.7 version. It works for me on my OS X 10.9.2 with Eclipse Juno.
如果您已经安装了它,只需卸载 3x 版本的 python。当您单击“查看已安装的内容”时,Eclipse 具有该选项。安装更高版本的 2.7。它适用于我的 OS X 10.9.2 和 Eclipse Juno。