dlopen() failed to load a library: cairo / cairo-2

后端 未结 6 1080
走了就别回头了
走了就别回头了 2020-12-18 18:43

This is my view:

from django.conf import settings
from django.http import HttpResponse
from django.template.loader import render_to_string
import weasyprint
         


        
6条回答
  •  伪装坚强ぢ
    2020-12-18 18:59

    sudo apt-get install build-essential python3-dev python3-pip python3-setuptools python3-wheel python3-cffi libcairo2 libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0 libffi-dev shared-mime-info
    

    http://weasyprint.readthedocs.io/en/latest/install.html#linux

提交回复
热议问题