运维笔记--ubuntu系统卸载指定版本的python

1、卸载python3.5(指定相应的版本就可以,例:python2.7,下同)

sudo apt-get remove --purge python3.5

2、完全卸载python3.5及其依赖软件(慎用!这里会删除python3.5及依赖python3.5的软件包,一般上面第一条命令已经够用)

sudo apt-get remove --auto-remove python3.5
sudo apt-get purge --auto-remove python3.5

3、清除python3.5及其依赖软件的安装包

sudo apt-get autoclean python3.5
原文地址:https://www.cnblogs.com/hellojesson/p/11394774.html