指定是否应在Google App Engine上使用Python 2.5或2.7

时间:2012-02-03 21:34:03

标签: python google-app-engine

Google App Engine简介指定此Your application can run in one of three runtime environments: the Go environment, the Java environment, and the Python environment, which gives you a choice of Python 2.5 or the experimental Python 2.7

但是,在下载SDK时,只有一个python包可用,我似乎找不到任何选项来选择我的项目将运行的Python版本。有没有人面对过这个?

1 个答案:

答案 0 :(得分:3)

有关如何使用Python 2.7运行时所需的所有信息,请参阅Using Python 2.7下的GAE文档。

简短版本:您需要将app.yaml文件中的'runtime'配置元素设置为'python27'。