Upgrade an existing application

You must upgrade your applications to the latest supported runtime version to continue receiving security updates and be eligible for technical support.

The process of upgrading an existing app depends on the runtime version that your app currently uses:

  • Python 2.7 (first-generation runtime): You must migrate your app to the latest supported Python version. Python 2.7 has reached end of support on January 31, 2024. Your existing Python 2.7 applications will continue to run and receive traffic. However, App Engine might block re-deployment of applications that use runtimes after their end of support date. To migrate from Python 2.7 to the latest supported version of Python, see Migrate to the Python 3 runtime.

  • Python second-generation runtimes (after end of support): To upgrade to a supported version of Python, update the app.yaml file by specifying a version of Python that you want your app to run. For example:

    runtime:pythonVERSION
    

    Where VERSION is the Python MAJOR and MINOR version numbers. For example, to use the latest Python version, Python 3.14 (preview), specify 314. For more information, see the Python runtime overview.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月09日 UTC.