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
.