【发布时间】:2020-04-12 21:22:11
【问题描述】:
在全新的 Ubuntu 安装中,我有 python 2.7、3.6 和 3.7。
运行 python --version 给我 3.7。
我可以使用 2.7 启动 dev_appeserver,但它似乎选择在内部使用 3.6:
INFO 2020-04-12 21:16:19,875 instance_factory.py:121] Detected Python 3.6.9
如何让它使用 python 3.7?
编辑:
更多细节。所以在我的app.yaml 中,我确实将运行时正确设置为:
runtime: python37
所以理论上sdk里面应该使用python 3.7。不知道为什么它默认为 3.6
尝试直接调用dev_appserver.py 会出现更奇怪的错误:
ERROR 2020-04-15 09:19:07,053 sdk_update_checker.py:203] The requested api_version (None) is not supported by the python37 runtime in this release of the SDK. The supported api_versions are ['1'].
【问题讨论】:
标签: python google-app-engine google-app-engine-python