Setting Up Your Development Environment

To set up your environment for developing on Python 2:

  1. Download and install the latest release of Python 2.

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

  2. Download, install, and then initialize the Cloud SDK. If you already have the Cloud SDK installed, run the gcloud components update command to update to the latest release.

    The Cloud SDK provides you the gcloud command-line tooling for deploying and managing your apps.

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

    Download and Install the Cloud SDK

  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

Installing optional tools

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

    Download and 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

Installing support for appcfg

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