1.查看当前python版本
python3 -V
2.删除python3.7 framework
ls /Library/Frameworks/Python.framework/Versions/
sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7
3.删除python3.7的应用目录
cd /Applications
sudo rm -rf python\ 3.7 #python 3.7存在空格
4.删除/usr/local/bin目录下指向的python3.7的链接
cd /usr/local/bin/
ls -l /usr/local/bin | grep ‘/Library/Frameworks/Python.framework/Versions/3.7’
来源:CSDN
作者:kan2016
链接:https://blog.csdn.net/kan2016/article/details/104178805