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組件無法使用的童鞋,請慎重!!

 


免責聲明!

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



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