Remove preinstalled python from Mac OSX 10.8

前端 未结 1 1151
刺人心
刺人心 2021-01-02 03:54

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,...

Does th

相关标签:
1条回答
  • 2021-01-02 04:17

    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.

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

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

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

    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.

    0 讨论(0)
提交回复
热议问题