设置开发环境
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如需设置环境以便进行 Python 2 开发,请执行以下操作:
安装最新版本的 Python 2。
如需获取受支持版本的列表,请参阅 Python 2 运行时环境。
安装并初始化 gcloud CLI 以部署和管理您的应用。如果您已安装并初始化 gcloud CLI,请运行 gcloud components update
命令以更新至最新版本。
下载 App Engine 版 gcloud CLI 即表示您同意遵守其使用条款。
安装包含适用于 Python 2 的 App Engine 扩展程序的 gcloud 组件。
如果您使用 apt
或 yum
软件包管理器安装了 gcloud CLI,请使用相同的软件包管理器安装 gcloud 组件。
否则,请使用以下命令:
gcloud components install app-engine-python
要访问 GitHub 中的代码、样本、库和工具,请安装 Git:
安装 Git
安装您偏好的工具或框架,例如,您可以使用以下任何一种框架来开发 Python 2 应用:
运行以下命令以安装 Python 2 版 Extra Libraries 组件,该组件包含 graphy 和 Django 库:
gcloud components install app-engine-python-extras
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-07。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]