I had the same problem on my MacBook so I wanted to share my solution.
I tried to install pycairo
, py2cairo
. The installation seemed to be okay but then:
- I could not
import pycairo
- igraph's plot would not work.
The following solved the igraph plotting issue:
sudo pip install cairocffi
or just
pip install cairocffi
So instead of pycairo I used cairocffi and this did the trick.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…