由于需要在ubuntu上跑一下传统的社团发现算法Louvain,所以需要装igraph,但是输入:
pip install python-igraph
会报错:
Could not compile the C core of igraph.
真是太奇怪了,试了网上很多种方法,例如:
https://blog.csdn.net/wonner_/article/details/88773677
发现都没有用,最后在StackOverflow上看到这个问题:https://stackoverflow.com/questions/28435418/failing-to-install-python-igraph
最佳答案下面的一个答案提供了一个方法:
sudo apt-get install python3-igraph
竟然就安装好了,呵呵,很多时候就是这么无语。简单记录一下。