Question

So many times after i type plot(g, layout=layout) poping out the error message:

enter image description here

I installed Cairo and py2cairo successfully as the doc said, but it didn't work.

I'm using mac os 10.8.x and I use ipython to try to plot as the tutorial.

Was it helpful?

Solution

First, make sure the python's real path by which python

Then, check the sys.path of current python.

I found that the brew install cairo is not installed in the python sys.path, so I have to add another PYTHONPATH:

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages

to my .bashrc.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top