【发布时间】:2018-04-06 07:21:54
【问题描述】:
我有一个需要从中获取 pdf 文件的应用程序,因此我选择了 weasyprint,但在使用 PIP 安装后,我导入了 import weasyprint 我在终端 OSError: ctype.util.find_library() did not manage to locate a library called fontconfig 中遇到错误
然后我尝试使用from weasyprint import HTML, CSS from weasyprint.fonts import FontConfiguration 仍然遇到同样的错误。无需编写任何进一步的代码,导入语句就会卡在错误上。截至 10 月,我正在运行最新的 django 和 weasyprint。在此先感谢
【问题讨论】:
标签: python django weasyprint