[英]Import error google.appengine.api in python flex environment
While importing appengine api in to python flex environment causing import error in local server. 将appengine api导入python flex环境时,导致本地服务器中的导入错误。 I have and application running on appengine which is using the flex environment instead of standard. 我的应用程序运行在使用flex环境而非标准环境的appengine上。
In my codebase the app directory contains python scripts and yaml file. 在我的代码库中,应用程序目录包含python脚本和yaml文件。 When I try to run the py file which through this error. 当我尝试通过此错误运行py文件时。
Run command
$ python main.py
from google.appengine.api import app_identity
ImportError: No module named appengine.api
The App Engine flexible environment does not provide the API libraries present in the App Engine SDK. App Engine灵活环境不提供App Engine SDK中提供的API库。
Please check this link Migrating Services from the Standard Environment to the Flexible Environment 请检查此链接,将服务从标准环境迁移到灵活环境
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.