gpt4 book ai didi

python - Win 7 上的 Google App Engine : Python 2. 5 和 Python 2.7(64 位)

转载 作者:行者123 更新时间:2023-12-01 05:57:55 26 4
gpt4 key购买 nike

我使用的是 Win 7(64 位),我想使用 Google App Engine。我从 https://developers.google.com/appengine/downloads 下载了最新版本的“Google App Engine SDK for Python”我要安装它。

我知道我需要先安装 Python 2.5 和 2.7。

我的问题:

  1. 我可以在同一台计算机上安装两个 Python 版本吗?

  2. 我想根据 app.yaml 配置行自动使用 Python 2.5 或 2.7:runtime: python运行时:python27

通过自动,我的意思是我不必每次在 Google App Engine -> 编辑(选项卡)-> 首选项 -> Python 路径中运行应用程序时选择 Python 版本

最佳答案

  1. 是的,您可以毫无问题地在计算机上安装多个 python 版本。

  2. Python 2.7 向后兼容 2.5。在 2.5 上运行的代码在 2.7 上也能正常运行。在 SDK 中使用 Python 2.7 二进制文件,将所有应用切换到 python27 运行时,并且不要回头。无需来回切换。

关于python - Win 7 上的 Google App Engine : Python 2. 5 和 Python 2.7(64 位),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11667698/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com