Installation of PyCairo on Windows

You are trying to install pycairo from source on Windows, which requires a Windows C compiler.

You can try the Unofficial Windows Binaries for Python Extension Packages web site. You can find the last version of pycairo (1.15.4) for Python 3.6. It is distributed as a wheel package so you should install it with no pain.

This web site is a well known alternative for Windows developers.

To install, try:

pip install https://download.lfd.uci.edu/pythonlibs/gjr6o2id/pycairo-1.15.4-cp36-cp36m-win_amd64.whl

Or download the wheel, and install as follow:

pip install pycairo-1.15.4-cp36-cp36m-win_amd64.whl

If you really want to install from source, you can follow the guide on the Python Wiki. There is a stand alone Microsoft Visual C++ 14.0.

Tags:

Python

Pycairo