python-pptx on Google App Engine

只愿长相守 提交于 2019-12-13 04:49:18

问题


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!


回答1:


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.




回答2:


I had the same problem. I wanted to use Python-pptx with GAE standard environment but wasn't able because GAE standard doesn't support Pillow. I migrated to GAE flexible environment and it works perfectly. Took a few hours to adjust my code for the flexible environment but its no big deal.



来源:https://stackoverflow.com/questions/29242092/python-pptx-on-google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!