How to pip install cairocffi?

For me, on Windows 10 using python 3.5.3rc1, pip install cairocffi was failing. Doing pip install cffi was sufficient to let it succeed.

It's right in the error message:

No package 'libffi' found

You'll need to install libffi and libffi-dev through your distro's package manager (yum, apt-get, whatever) before the pip installation will work. Their names may very slightly from platform to platform.

Couldn't get it to work, even with libffi6 libffi-dev installed. Finally got it working with:

pip3 install -U pip
pip3 install -U setuptools
pip3 install --no-cache-dir cairocffi

--no-cache-dir was the trick, thanks to: