How to find all python installations on mac os x and uninstall all but the native OS X installation

后端 未结 2 1421
情歌与酒
情歌与酒 2020-12-12 23:23

I have installed a few versions on my MacBook for different projects and have only now realized what a mistake that was. I have used homebrew to install it, installed it via

2条回答
  •  有刺的猬
    2020-12-13 00:03

    you can start by removing any Python Frameworks in /Library/Frameworks and any User Library (like ~/Library/Frameworks). The system one is in /System/Library/Frameworks.

    homebrew and macports install under /usr somewhere IIRC. not sure of other places to look, but you should be able to grep for "Python" to find them all.

    be aware, if you have installed other software via homebrew that is dependent on Python, you will break it. you may be able to fix it with symbolic links to the system python, however, some software requires Python 3. as of 10.9 the system has Python 2.3-2.7 only.

提交回复
热议问题