在问这个问题之前,我尝试了很多方法。我主要关注这些帖子
How to find all python installations on mac os x and uninstall all but the native OS X installation
How to clean iPython environment so I can start over with Jupyter and Python 3.x?
我也试过了
conda install anaconda-clean
anaconda-clean --yes
rm -rf ~/anaconda3
brew cleanup python3
但我还有很多python版本
GZs-MacBook-Pro:bin gz$ which python
/usr/bin/python
GZs-MacBook-Pro:bin gz$ which python3
/usr/bin/python3
GZs-MacBook-Pro:bin gz$ ls /System/Library/Frameworks/Python.framework/Versions
2.3 2.5 2.6 2.7 Current
GZs-MacBook-Pro:bin gz$ ls /Library/Frameworks/Python.framework/Versions
ls: /Library/Frameworks/Python.framework/Versions: No such file or directory
GZs-MacBook-Pro:bin gz$ ls -l /usr/bin/python*
lrwxr-xr-x 1 root wheel 75 9 Oct 23:42 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 9 Oct 23:42 /usr/bin/python-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
lrwxr-xr-x 1 root wheel 75 9 Oct 23:42 /usr/bin/python2 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 75 9 Oct 23:42 /usr/bin/python2.7 -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
lrwxr-xr-x 1 root wheel 82 9 Oct 23:42 /usr/bin/python2.7-config -> ../../System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
-rwxr-xr-x 1 root wheel 31456 5 Dec 04:32 /usr/bin/python3
除了OSX上的原始版本外,我如何删除其他python版本
目前没有回答
相关问题 更多 >
编程相关推荐