0

每当我尝试这样做时,都会出现以下错误

dev_appserver.py app.yaml

文件“/Users/monikap/Desktop/test-dir/google-cloud-sdk/platform/google_appengine/dev_appserver.py”,第 95 行,在 断言 sys.version_info[0] == 2 AssertionErro r

我的 Mac 上安装了 Python 3.7 版

4

2 回答 2

0

开发服务器仍然需要安装 python 2,即使对于 python 3 应用程序,请参阅Python 3.7 Local Development Server Options for new app engine apps

于 2020-01-10T08:24:38.783 回答
0

Python3 现在在 Cloud SDK 上有 GA 支持

我认为您需要使用gcloud components update.

于 2020-01-10T08:55:15.700 回答