一、卸載python3.5(指定相應的版本就能夠,例:python2.7,下同)python
sudo apt-get remove --purge python3.5
二、徹底卸載python3.5及其依賴軟件(慎用!這裏會刪除python3.5及依賴python3.5的軟件包,通常上面第一條命令已經夠用)python2.7
sudo apt-get remove --auto-remove python3.5
sudo apt-get purge --auto-remove python3.5
三、清除python3.5及其依賴軟件的安裝包code
sudo apt-get autoclean python3.5