Before you can run your app in the Python 3 runtime of the App Engine standard environment, you may need to change some of the configuration files that App Engine uses:
app.yaml. This file contains information about your app's code, such as the runtime and the latest version identifier.
appengine_config.py. The Python 2 runtime uses this file to install client libraries and provide values for constants and "hook functions". The Python 3 runtime doesn't use this file.
The behavior of some fields in your
file has been
modified. Remove any fields that are no longer supported and update other
fields as described in the following table.
|No longer supported||Not applicable in the Python 3 runtime.|
|threadsafe||No longer supported||All applications are presumed to be threadsafe. If your application isn't
|libraries||No longer supported||
|handlers: login||No longer supported||
|handlers: script||Modified||In the Python 2 runtime, you use the
In the Python 3 runtime, you are required to use a web framework with
in-app routing (such as Flask or Django) instead of using the
To migrate your
Static file handling remains unchanged.
If you use any of the deprecated fields, App Engine returns an error when you deploy your app.
The Python 2 runtime in the App Engine standard environment used the
file include vendored third-party libraries. The Python 3 runtime ignores the
Instead, the Python 3 runtime uses the standard
file to install dependencies,
including dependencies that use native code. For more information, see
in the Python 3 runtime.