在Mac OS X 10.6.7上卸载python 3.2 [英] Uninstall python 3.2 on mac os x 10.6.7
问题描述
根据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).
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).
1.如何彻底删除3.2以避免任何兼容性问题?
tcl/tk 8.5.9,这不是默认设置.安装期间没有冗长的模式,所以我不知道它是否替代了默认模式.如果确实如此,它将对操作系统有多严重?因此
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
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.
谢谢
推荐答案
由于Python使用软件包管理器进行安装,因此您可以使用可疑软件包查看安装脚本以及所有内容的安装位置.
Since Python installs using a package manager, you can use Suspicious Package to look at the install script and where everything is installed.
请注意,这仅用于演示目的.我的环境是OSX 10.6.8,正在卸载python-3.2.2-macosx10.6.dmg.
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.
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
这篇关于在Mac OS X 10.6.7上卸载python 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!