从Mac OSX 10.8移除预装的python [英] Remove preinstalled python from Mac OSX 10.8

查看:75
本文介绍了从Mac OSX 10.8移除预装的python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想移至python 3.0,因此在Mac上删除了默认的python 2.7(2.6,2.5 ...)安装.包括所有已安装的软件包,$ PATH,...

I want to move to python 3.0 and therefore remove the default python 2.7 (2.6,2.5...) installation on my mac. Including all the installed packages, $PATH,...

Macports安装程序中的python.org或python安装程序是否提供了卸载程序?

Does the python installer from python.org oder MacPorts installer provide an uninstaller, or is there a way to do this manually?

推荐答案

这是一个完全可怕的主意,您永远不要这样做.您可能会破坏对期望在默认位置找到默认Python的各种软件的依赖关系和要求.

That's a COMPLETELY TERRIBLE idea, and you should never do that. You're likely to break dependencies and requirements for various software that expect to find the default Python in the default location.

安装您选择的Python 3(MacPorts,Python.org等).更新本地$ PATH变量以使用该Python/PythonPath.

Install your choice of Python 3 ( MacPorts, Python.org, whatever ). Update your local $PATH variables to use that Python / PythonPath.

如果您不相信我的意见,这是Python.org官方文档所说的话:

If you don't trust my opinion, here's what official Python.org docs say:

http://docs.python.org/2/using/mac.html

Apple提供的Python构建版本分别安装在/System/Library/Frameworks/Python.framework和/usr/bin/python中.您绝对不能修改或删除这些内容,因为它们是Apple控制的,并由Apple或第三方软件使用.请记住,如果您选择从python.org安装较新的Python版本,则您的计算机上将安装两个不同但功能正常的Python安装,因此,确保路径和用法与您要执行的操作保持一致非常重要. >

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.

这篇关于从Mac OSX 10.8移除预装的python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆