前言
最近在學習python/269055.html">python/273195.html">python-igraph,發現其實學習一種全新的語言看官方的文檔是真的很有幫助,這次我的大部分python代碼的完成都是靠著igraph官方的API文檔。
官方API:http://pythonhosted.org/python-igraph/igraph.Graph-class.html
本文將給大家詳細介紹關于在linux ubuntu安裝、卸載和刪除python-igraph的相關內容,分享出來供大家參考學習,下面話不多說了,來一起看看詳細的介紹吧。
一、如何在Ubuntu 16.10上安裝python-igraph?
首先使用以下命令更新系統:
sudo add-apt-repository ppa:igraph/ppa # Add the Launchpad repository to aptsudo apt-get update
以上命令將在您的系統上下載Ubuntu 16.10的軟件包列表。這將更新最新版本的軟件包及其依賴于您的系統的列表。
在上面的幫助下載最新的軟件包列表后,可以運行安裝過程。
如果您的compter中沒有安裝python-igraph,那么命令'dpkg -L python-igraph'將給出followin錯誤。
deepak@deepak-VirtualBox:~$ dpkg -L python-igraphdpkg-query: package 'python-igraph' is not installedUse dpkg --info (= dpkg-deb --info) to examine archive files,and dpkg --contents (= dpkg-deb --contents) to list their contents.deepak@deepak-VirtualBox:~$
安裝python -igraph:
系統更新后,使用以下命令安裝python-igraph:
sudo apt-get install python-igraph
在Ubuntu 16.10操作系統上安裝軟件包之前,以上命令將確認。如果您還沒有以su身份登錄,安裝程序會詢問root密碼。安裝完成后,您可以使用系統上的軟件包。
二、如何從Ubuntu 16.10卸載/刪除python-igraph?
現在我們將看到從Ubuntu 16.10卸載python-igraph命令。要卸載此軟件包,您可以輕松使用apt命令,并從Linux操作系統中刪除該軟件包。
使用以下命令刪除python-igraph命令:
sudo apt-get remove python-igraph
以下命令用于刪除python -igraph包及其依賴關系:
sudo apt-get remove --auto-remove python-igraph
這將刪除系統中不再需要的python -igraph及其所有依賴軟件包。
完全刪除所有配置文件的python-igraph:
應該謹慎使用以下命令,因為它會刪除所有配置文件和數據:
sudo apt-get purge python-igraph
或者也可以使用以下命令:
sudo apt-get purge --auto-remove python-igraph
以上命令將刪除與python-igraph包關聯的所有配置文件和數據。您無法恢復刪除數據,因此請謹慎使用此命令。
參考文章:http://www.chenxm.cc/post/447.html
總結
以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,如果有疑問大家可以留言交流,謝謝大家對VEVB武林網的支持。
新聞熱點
疑難解答