Skip to content Skip to sidebar Skip to footer

Python - Igraph Plot Not Available (cairo Already Installed)

I've installed py2cairo using brew, but keep getting errors when trying to plot with igraph. I get the following error: >>> import igraph as ig >>> from igraph im

Solution 1:

brew probably installs py2cairo for its own Python, while you are running igraph under Anaconda Python. A module installed for one Python distribution on your machine will not appear magically under the other Python distribution, so you'll either have to get py2cairo for Anaconda Python or compile the Python interface of igraph for Homebrew's Python.

Solution 2:

try updating your PYTHONPATH variable, e.g. (insert your username in place of NNNN):

export PYTHONPATH=/Users/NNNN/anaconda/bin/python:$PYTHONPATH

Solution 3:

I had the same problem. I tried to install pycairo, py2cairo but igraph's plot would not work.

The following solved the igraph plotting issue:

sudo pip install cairocffi

Instead of pycairo I used cairocffi and this solved my problem.

Post a Comment for "Python - Igraph Plot Not Available (cairo Already Installed)"