由於需要在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
竟然就安裝好了,呵呵,很多時候就是這麼無語。簡單記錄一下。