Google App Engine上的python-pptx [英] python-pptx on Google App Engine

查看:100
本文介绍了Google App Engine上的python-pptx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Google App Engine第三方库支持,受支持的最新版本的 lxml 2.3 https://cloud.google.com/appengine/docs/python/tools/libraries27

并且python-pptx需要lxml > = 3.1.0 https://github.com/scanny/python-pptx/blob/master /requirements.txt

那么在 GAE 上运行 python-pptx 的最佳方法是什么(如果可能)?

注意:我正在使用 buildout 来部署我的应用程序,并且这些限制失败了.

谢谢!

解决方案

App Engine与该库不兼容,因此,如果您仍然希望使用App Engine服务,最好的选择是使用托管VM: https://cloud.google.com/appengine/docs/managed-vms/

这将使您可以访问所有App Engine服务,但可以在安装库时提供更大的灵活性.

According to Google App Engine Third Party Libraries Support, the latest version of lxml supported is 2.3 https://cloud.google.com/appengine/docs/python/tools/libraries27

And python-pptx requires lxml >= 3.1.0 https://github.com/scanny/python-pptx/blob/master/requirements.txt

So what's the best way (if possible) to run python-pptx on GAE?

Note: I'm using buildout to deploy my applications, and that where those restrictions fail.

Thanks!

解决方案

App Engine isn't compatible with that library so your best bet if you still want to stick with App Engine services is to use Managed VMs: https://cloud.google.com/appengine/docs/managed-vms/

This will let you access all the App Engine services but give you more flexibility with installing libraries.

这篇关于Google App Engine上的python-pptx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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