Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

Installing an SDK

The preferred tooling for managing your App Engine applications in Python 2 is Google Cloud SDK. Cloud SDK includes a local development server as well as the gcloudcommand-line tooling for deploying and managing your apps.

By downloading, you agree to be bound by the Terms that govern use of all SDKs for App Engine.

Installing Cloud SDK for Python 2

Install Google Cloud SDK along with the corresponding gcloud component and other related tools and dependencies.
  1. Install Python version 2.7:
    Download and install
  2. Install and initialize Google Cloud SDK:
    Download and install
  3. Run the following command in your terminal to install the gcloud component that includes the App Engine extension for Python 2:
    gcloud components install app-engine-python
  4. Download and install Git for access to code, samples, libraries, and tools in GitHub:
    Download and Install Git
  5. Optional: Run the following command to install the Extra Libraries component for Python 2, which includes the graphy and Django libraries:
    gcloud components install app-engine-python-extras

Updating Cloud SDK for Python 2

If you already have the Google Cloud SDK installed, you can run the gcloud components update command to update the SDK to the latest version.

  1. Review the release notes to see what updates are available:
  2. Run the following command to update all the installed Google Cloud SDK components, including the App Engine extension for Python 2:
    gcloud components update

If you have previously used the original App Engine SDK and need to continue to use the appcfg command, you can instead download and install the original App Engine SDK by following the instructions below. Cloud SDK does not include the appcfg command.