ubuntu下Python的安装与卸载


安装Python3的命令


sudo apt-get install python3.5

1、卸载python3.4


sudo apt-get remove python3.4

2、卸载python3.4及其依赖


sudo apt-get remove --auto-remove python3.4

3、清除python3.4(此命令千万不能用,害得我重新安装系统)


sudo apt-get purge python3.4
or
sudo apt-get purge --auto-remove python3.4
以后注意,凡是
sudo apt-get purge的命令前往不能随便使用,会出大问题

注释:

此方法卸载python比较彻底,所以适合更换python版本时使用。

——对于既想完全卸载python,又无法接受完全卸载后某些python组件无法使用的童鞋,请慎重!!

 
原文地址:https://www.cnblogs.com/shuimuqingyang/p/14506537.html