Google App Engine 中包含哪些 Python 包/库?
a.) 例如我想了解 numpy, scipy, scikits 和 matplotlib 位于 Google 应用引擎
b.)有没有办法把它们安装在那里(疯狂的问题)?
a.) for example I want to know numpy, scipy, scikits and matplotlib are there in google app engine
b.) is there a way to install them in there(insane question)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
App Engine 捆绑了大部分标准库,但有一些例外(
marshal
不可用、cPickle
是pickle
的别名,以及模块处理套接字等问题将不起作用),以及webob
、simplejson
、django
和PyYAML
。您可以在此处查看列表。您可以在应用程序中包含任何您想要的纯 python 库。不支持 C 扩展,这排除了 numpy、scipy 以及任何依赖于它们的东西(如您提到的其他 2 个模块)。Python
2.7 运行时很快就会进入受信任的测试人员手中,将包括 numpy(以及 PIL 和 lxml) ),但目前没有迹象表明任意 C 扩展将很快被允许(尽管有一些希望它们最终可能通过 NaCL 被允许。)
App Engine bundles most of the standard library, with a few exceptions (
marshal
isn't available,cPickle
is an alias forpickle
, and modules dealing with, e.g., sockets, won't work), pluswebob
,simplejson
,django
, andPyYAML
. You can see a listing here.You can include any pure python libraries you want with your application. C extensions are not supported, which rules out numpy, scipy, and anything that depends on them (like the other 2 modules you mention.)
The Python 2.7 runtime, soon to go to trusted testers, will include numpy (along with PIL and lxml), but at the moment there's been no indication that arbitrary C extensions will be allowed any time soon (although there is some hope that they might eventually be allowed via NaCL.)
Google App Engine 将在以下版本中支持 PIL、NumPy 和 lxml 库未来
PIL, NumPy, and lxml library will be supported by Google App Engine in the future
自 2012 年 12 月 13 日起,Google 应用引擎支持 numpy 和 matplotlib。
有一个问题是开发者服务器不支持开箱即用的 matplotlib,但这相对容易破解: http://gae-matplotlib-demo.appspot.com/
你可以自己包含纯python模块,但我认为 scipy 不是其中之一,所以你运气不好。
Since 13/14 Dec 2012, Google app engine supports numpy and matplotlib.
There's a catch that developer server doesn't support matplotlib out of the box, but that was relatively easy to hack around: http://gae-matplotlib-demo.appspot.com/
Pure-python modules you can include yourself, but I think scipy is not one of them, so you're out of luck.
对于 Python 2.7,支持 django、endpoints、jinja2、lxml、markupsafe、matplotlib、MySQLdb、numpy、PIL、protorpc、PyAMF、pycrypto、setuptools、ssl、webapp2、webob
查看此文档以获取完整列表Python 2.7 中的第三方库
For Python 2.7, django, endpoints, jinja2, lxml, markupsafe, matplotlib, MySQLdb, numpy, PIL, protorpc, PyAMF, pycrypto, setuptools, ssl, webapp2, webob are supported
Checkout this document for full list Third-party Libraries in Python 2.7