linux ubuntu中安裝、卸載和刪除python-igraph的方法教程
最近在學(xué)習(xí)python-igraph,發(fā)現(xiàn)其實(shí)學(xué)習(xí)一種全新的語(yǔ)言看官方的文檔是真的很有幫助,這次我的大部分python代碼的完成都是靠著igraph官方的API文檔。
官方API:http://pythonhosted.org/python-igraph/igraph.Graph-class.html
本文將給大家詳細(xì)介紹關(guān)于在linux ubuntu安裝、卸載和刪除python-igraph的相關(guān)內(nèi)容,分享出來(lái)供大家參考學(xué)習(xí),下面話不多說(shuō)了,來(lái)一起看看詳細(xì)的介紹吧。
一、如何在Ubuntu 16.10上安裝python-igraph?
首先使用以下命令更新系統(tǒng):
sudo add-apt-repository ppa:igraph/ppa # Add the Launchpad repository to apt sudo apt-get update
以上命令將在您的系統(tǒng)上下載Ubuntu 16.10的軟件包列表。這將更新最新版本的軟件包及其依賴于您的系統(tǒng)的列表。
在上面的幫助下載最新的軟件包列表后,可以運(yùn)行安裝過(guò)程。
如果您的compter中沒有安裝python-igraph,那么命令'dpkg -L python-igraph'將給出followin錯(cuò)誤。
deepak@deepak-VirtualBox:~$ dpkg -L python-igraph dpkg-query: package 'python-igraph' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. deepak@deepak-VirtualBox:~$
安裝python -igraph:
系統(tǒng)更新后,使用以下命令安裝python-igraph:
sudo apt-get install python-igraph
在Ubuntu 16.10操作系統(tǒng)上安裝軟件包之前,以上命令將確認(rèn)。如果您還沒有以su身份登錄,安裝程序會(huì)詢問(wèn)root密碼。安裝完成后,您可以使用系統(tǒng)上的軟件包。
二、如何從Ubuntu 16.10卸載/刪除python-igraph?
現(xiàn)在我們將看到從Ubuntu 16.10卸載python-igraph命令。要卸載此軟件包,您可以輕松使用apt命令,并從Linux操作系統(tǒng)中刪除該軟件包。
使用以下命令刪除python-igraph命令:
sudo apt-get remove python-igraph
以下命令用于刪除python -igraph包及其依賴關(guān)系:
sudo apt-get remove --auto-remove python-igraph
這將刪除系統(tǒng)中不再需要的python -igraph及其所有依賴軟件包。
完全刪除所有配置文件的python-igraph:
應(yīng)該謹(jǐn)慎使用以下命令,因?yàn)樗鼤?huì)刪除所有配置文件和數(shù)據(jù):
sudo apt-get purge python-igraph
或者也可以使用以下命令:
sudo apt-get purge --auto-remove python-igraph
以上命令將刪除與python-igraph包關(guān)聯(lián)的所有配置文件和數(shù)據(jù)。您無(wú)法恢復(fù)刪除數(shù)據(jù),因此請(qǐng)謹(jǐn)慎使用此命令。
參考文章:http://www.chenxm.cc/post/447.html
總結(jié)
以上就是這篇文章的全部?jī)?nèi)容了,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,如果有疑問(wèn)大家可以留言交流,謝謝大家對(duì)本站的支持。
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。