mac osx 下删除python 2.7


remove the Python 2.7 frameworksudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
remove the Python 2.7 applications directorysudo rm -rf "/Applications/Python 2.7"
remove the symbolic links in /usr/local/bin
默认好像装了2.6 ,注意链接要恢复下,否则执行不到python了
 
Which symbolic links should be deleted from /usr/local/bin? – Kit Mar 24 ’11 at 13:42
The ones that point back to the 2.7 framework: ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' – Ned Deily Mar 24 ’11 at 18:02
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | xargs rm – Vaibhav Bajpai Feb 20 at 17:04

相关内容

    暂无相关文章

评论关闭