Skip to content
Advertisement

Install needed libraries for Weasyprint on pipenv (Windows environment)

In order to start generating documents with Weasyprint I installed it on my Windows machine following these instructions:
https://weasyprint.readthedocs.io/en/stable/install.html#step-5-run-weasyprint

On my computer it works but I have a Django project where I want to integrate this library and I use pipenv.
How to install the necessary libraries even in the virtual environment?
I tried setting the path for the pycairo package into the Pipfile like

JavaScript

but still it throws the error:

JavaScript

I have 64bit Windows machine and this is the Pipfile:

JavaScript

Advertisement

Answer

You need install ‘GTK+ 64 Bit Installer’ path in this local:

C:msys2

Source: WeasyPrint Github

Advertisement