.. blogpost::
:title: Cannot load library libcairo-2.dll
:keywords: pycairo, cairo, libcairo
:date: 2021-01-06
:categories: installation
The following error may appear when using
`pycairo `_.
This module is usually not directly used but through
:epkg:`matplotlib`.
::
cannot load library '..\bin\libcairo-2.dll': error 0xc1
cannot load library 'libcairo.so.2': error 0x7e
cannot load library 'libcairo.2.dylib': error 0x7e
cannot load library 'libcairo-2.dll': error 0xc1
I was able to solved the issue by installing the
latest version of `Graphviz `_
(2.44) which can be found here:
`www2.graphviz.org/...
`_.