I\'ve tried to install pycairo in a virtualenv to use in a Django project. I\'ve ran the pip install pycairo==1.10.0 command which finds the packag
pycairo currently does not support installation through pip/distutils. The project’s install docs instructs to use either waf or autotools.
To use pycairo in a virtualenv, you need to:
--system-site-packages option or remove the lib/pythonX.Y/no-global-site-packages.txt file after the fact.cairo package (the directory containing _cairo.so). Something like this:
ln -s /usr/lib/python2.7/site-packages/cairo ./venv/lib/python2.7/site-packages
Of course 1. has the downside that you will not profit from virtualenv’s isolation from other packages installed system-wide.