cd /Library/Frameworks/Python.framework/Versions/
ls
删除多余版本3.8
sudo rm -rf 3.8
cd /Applications/
ls
sudo rm -rf Python\ 3.8
cd /usr/local/bin/
ls -l /usr/local/bin/ |grep ‘../Library/Frameworks/Python.framework/Versions/3.8‘ |awk ‘{print $9}‘ | tr -d @ | xargs rm
查看目前python
which python
/usr/bin/python
原文:https://blog.51cto.com/13670314/2451631