Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

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

Setting Up Your Development Environment

Stay organized with collections Save and categorize content based on your preferences.

To set up your environment for developing on Python 2:

  1. Install the latest release of Python 2.

    See Python 2 Runtime Environment for a list of the supported versions.

  2. Install and initialize the gcloud CLI for deploying and managing your apps. If you already have the gcloud CLI installed and initialized, run the gcloud components update command to update to the latest release.

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

  3. Install the gcloud component that includes the App Engine extension for Python 2.

    If you used the apt or yum package managers to install the gcloud CLI, use those same package managers to install the gcloud component.

    Otherwise, use the following command:

     gcloud components install app-engine-python
    

Installing optional tools

  • For access to code, samples, libraries, and tools in GitHub, install Git:

    Install Git

  • Install your preferred tooling or framework, for example you can use any of the following frameworks to develop your Python 2 app:

  • 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