gpt4 book ai didi

python - python flex环境导入报错google.appengine.api

转载 作者:太空宇宙 更新时间:2023-11-04 09:54:01 26 4
gpt4 key购买 nike

将 appengine api 导入到 python flex 环境时导致本地服务器导入错误。我有应用程序在使用 flex 环境而不是标准环境的 appengine 上运行。

在我的代码库中,app 目录包含 python 脚本和 yaml 文件。当我尝试通过此错误运行 py 文件时。

Run command
$ python main.py

from google.appengine.api import app_identity
ImportError: No module named appengine.api

最佳答案

App Engine 柔性环境不提供 App Engine SDK 中的 API 库。

请检查此链接 Migrating Services from the Standard Environment to the Flexible Environment

关于python - python flex环境导入报错google.appengine.api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46641331/

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