運維筆記--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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM