如何使WeasyPrint与Google App Engine一起使用

编程入门 行业动态 更新时间:2024-10-25 12:27:47
本文介绍了如何使WeasyPrint与Google App Engine一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是GAE,WeasyPrint和Python的新手.我意识到WeasyPrint依赖于很多依赖关系.我看过Windows的安装文档.但是我似乎无法弄清楚如何在GAE上工作.无法下载包含所有依赖项的版本并将其复制到我的项目文件夹中?

I'm new to GAE, WeasyPrint and Python. I realise that WeasyPrint relies on quite a few dependences. I have had a look at the install documentation for Windows. But I cant seem to figure out how I would get it working on GAE. Is there no way to download an version with all the dependencies included and just copy it to my project folder?

推荐答案

不可能直接在appengine上运行WeasyPrint.您应该始终阅读有关依赖项的文档.WeasyPrint依赖cairo和pango,它们都是基于'c'的库.您只能运行您提供的纯python库.有一些直接支持的python库确实支持一些'c',例如PIL和libxml.但这对于WeasyPrint来说还不够.

Its not possible to run WeasyPrint directly on appengine. You should always read the docs on the dependencies. WeasyPrint is dependent on cairo and pango which are 'c' based libs. You can only run pure python libraries that you supply. There are some directly supported python libraries that do have some 'c' that are supported like PIL and libxml. But that isn't enough for WeasyPrint.

更多推荐

如何使WeasyPrint与Google App Engine一起使用

本文发布于:2023-11-27 06:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636980.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Google   WeasyPrint   Engine   App

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!