当前位置:编程学习 > python >>

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
补充:Web开发 , Python ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,