新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
創(chuàng)新互聯(lián)Python教程:linux上python卸載不了是什么原因?
linux下卸載python:

創(chuàng)新互聯(lián)公司是專業(yè)的貴陽網(wǎng)站建設公司,貴陽接單;提供成都網(wǎng)站建設、網(wǎng)站設計,網(wǎng)頁設計,網(wǎng)站設計,建網(wǎng)站,PHP網(wǎng)站建設等專業(yè)做網(wǎng)站服務;采用PHP框架,可快速的進行貴陽網(wǎng)站開發(fā)網(wǎng)頁制作和功能擴展;專業(yè)做搜索引擎喜愛的網(wǎng)站,專業(yè)的做網(wǎng)站團隊,希望更多企業(yè)前來合作!
1.首先查看自己電腦的python版本
在root下,
python3 --version python3.5.3 python --version python 2.7.13
2.說實話,對于這點我不太喜歡,可能是系統(tǒng)自帶的,無自己沒事就瞎折騰一下,也就是摸索摸索。
3.卸載
進入root下
sudo apt-get remove python3.5
4.清除
sudo apt-get purge python3.5
6.繼續(xù)卸載相關
sudo apt autoremove
7.查看python3
root@xgj-PC:~# python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type “help”, “copyright”, “credits” or “l(fā)icense” for more information.
可以看到linux系統(tǒng)中python卸載失敗。
卸載失敗的原因:
linux系統(tǒng)的ubuntu版本默認安裝python2和python3.5,這兩個python無法卸載。
我們可以直接安裝需要使用的python版本。
文章名稱:創(chuàng)新互聯(lián)Python教程:linux上python卸載不了是什么原因?
URL鏈接:http://m.fisionsoft.com.cn/article/dhcdhdd.html


咨詢
建站咨詢
