本文介绍了igraph库错误-已过时的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将计算机更改为Linux Mint x64操作系统,并且当我尝试执行我编写的旧程序时,遇到了python库,igraph库的麻烦.

I have changed my computer to a Linux Mint x64 OS and I have throubles with a python library, igraph library, when i try to execute and old program I made.

我找不到有关如何更改新库代码的信息.在Win8 PC上,通过pip安装,它可以完美运行,但是我不能在Mint上使其在我的PC上运行.使用

I can't find information about how to change my code for the new library.On a Win8 PC, via pip installation, it works perfectly but I can't make it working on my PC with Mint.The normal installation made with

安装0.6.5-1库版本.我也尝试用pip安装它,但它给了我同样的错误但安装的版本是igraph-0.1.11-py2.py3-none-any.whl

install 0.6.5-1 library version.I've also tried installing it with pip but it gives me same errorbut installed version is igraph-0.1.11-py2.py3-none-any.whl

我只使用Graph类

from igraph import Graph

我该怎么做才能更改代码以使其与新库一起使用?我想念什么吗?

What have I to do to change my code to make it working with the new library? Am I missing something?

edit:它可以在装有Mint x86 OS,库版本0.6.5-1的笔记本电脑上工作

edit: it's working on my laptop with Mint x86 OS, library version 0.6.5-1

推荐答案

我认为您安装了错误的igraph libray.

I think you have installed the wrong igraph libray.

igraph(0.1.11)是您安装的,而 igraph(0.7.1)是您需要的(和著名的iGraph).

This igraph(0.1.11) is the one you installed, while this igraph(0.7.1) is the one you need (and the well-known iGraph).

  • 使用点子(一旦安装了它),只需执行以下操作即可:

  • Using pip (once you've installed it), Just do:

sudo pip卸载igraph

sudo pip uninstall igraph

然后使用pip或apt-get安装python-igraph-0.7.1软件包,如以下注释中所述:

Then install the python-igraph-0.7.1 package, using either pip or apt-get as mentionned in comments below:

sudo pip安装python-igraph

sudo pip install python-igraph

希望它能起作用.

这篇关于igraph库错误-已过时的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 10:41