如何使WeasyPrint与Google App Engine一起使用 [英] How to get WeasyPrint working with Google App Engine

查看:76
本文介绍了如何使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一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆