I see there is an old question about a similar thing here:
How do you install PyCairo (Cairo for Python) on Windows?
Since it\'s from 2012, I guess it\'s out
Pycairo now has Wheels. So simple
pip install pycairo
will work for 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.
This worked for me : https://github.com/Automattic/node-canvas/wiki/Installation%3A-Windows
Make sure to unzip cairo
library in C:\GTK
for your exact x86
or x64
architecture