简体   繁体   中英

Import error google.appengine.api in python flex environment

While importing appengine api in to python flex environment causing import error in local server. I have and application running on appengine which is using the flex environment instead of standard.

In my codebase the app directory contains python scripts and yaml file. When I try to run the py file which through this error.

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.

Please check this link Migrating Services from the Standard Environment to the Flexible Environment

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM