天天看点

ubuntu卸载python3

1.环境 :

Ubuntu18

2.操作:

2.1 卸载python3.5

$sudo apt-get remove python3.5
           

2.2 卸载python3.5以及它的依赖包

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

2.3清除python3.5

要想清除python3.5的配置文件和数据文件,执行以下命令:

$sudo apt-get purge python3.5
$sudo apt-get purge --auto-remove python3.5
           
参考:https://www.jianshu.com/p/b6959d0c7353