linux ubuntu 安装/卸载/删除python-igraph方法

发布时间:2019-06-23 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了linux ubuntu 安装/卸载/删除python-igraph方法脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

何在ubuntu 16.10上安装python-igraph?

首先使用以下命令更新系统:

sudo add-apt-reposITory ppa:igraph/ppa    # Add the Launchpad repository to apt
sudo apt-get update

以上命令将在您的系统上下载Ubuntu 16.10的软件包列表。这将更新最新版本的软件包及其依赖于您的系统的列表。

在上面的帮助下载最新的软件包列表后,可以运行安装过程。

如果您的compter中没有安装python-igraph,那么命令'dpkg -L python-igraph'将给出followin错误。

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:
系统更新后,使用以下命令安装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...

脚本宝典总结

以上是脚本宝典为你收集整理的linux ubuntu 安装/卸载/删除python-igraph方法全部内容,希望文章能够帮你解决linux ubuntu 安装/卸载/删除python-igraph方法所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。