demo.py should be run from the directory above "pycha" you'll want to: apt-get install libffi-dev libcairo-dev pip install cffi cairocffi "a reasonably-fast non-interactive friendly-to-hack backend plotting library"