python 版本为 2.7.3,Ubuntu16.04, 在用 pip 和 源代码都无法安装的情况下,经过百度和谷歌发现只要按照以下步骤就可以顺利安装python-igraphsudo add-apt-repository ppa:igraph/ppa # Add the Launchpad repository to apt
sudo apt-get update # update your package database
sudo apt-get install python-igraph
完成之后,查看目录/usr/lib/python2.7/dist-packages/就可以看到python-igraph安装成功
注意该方法安装python-graph是,如果使用的国内源,那么安装的版本为0.6.5,必须要使用ubuntu原生源,可以直接安装最新的
最新本python-igraph==0.7.1.post6(截止日期2017/10/25)
参考文章:https://stackoverflow.com/questions/43580762/how-to-install-igraph-package-for-python-in-ubuntu