The preferred tooling for managing your App Engine applications in
Python is now the
Google Cloud SDK. The Cloud SDK includes a local development server as
well as the tooling for deploying and managing your applications.
By downloading, you agree to be bound by the Terms that govern use of the SDK for App
Engine.
To install the SDK for python:
-
Download, install, and initialize the Cloud SDK:
Download and Install
-
Install
the gcloud component that includes the Python extension:
gcloud components install app-engine-python
-
Optional: Run the following command to install the
Extra
Libraries component for Python, which includes the graphy
and Django
libraries:
gcloud components install app-engine-python-extras
Or, you can download the original App Engine SDK for Python.
To install the original local development server and tooling for
deploying and managing your apps, you can install the App Engine SDK for
Python.
Optional: Download and install the App Engine SDK for Python
- Download the App Engine SDK for Python:
file_download
Download
Version:
1.9.50 - 2017-01-23
SHA1 Checksum:
02ca467d77f5681c52741c7223fb8e97dff999da
-
To install on Linux:
- Unzip the
google_appengine_1.9.50.zip file that you downloaded, for example:
unzip google_appengine_1.9.50.zip
There is no App Engine installation script that you need to
run after unzipping the files.
- Add the
google_appengine_1.9.50 directory to your
PATH:
export PATH=$PATH:DIRECTORY_PATH/google_appengine_1.9.50/
- Make sure Python 2.7 is installed on your machine using
the following command:
/usr/bin/env python -V
The output should look like this:
Python 2.7.[NUMBER]. If Python 2.7 isn't
installed, install it now using the installation instructions
for your Linux distribution.
- Download the App Engine SDK for Python:
file_download
Download
Version:
1.9.50 - 2017-01-23
SHA1 Checksum:
f6883f1619b2a96d414e9b67ff781934b50d2735
-
To install the SDK on Mac OS X:
- In the Finder, click Go > Applications to open the
Applications folder.
- Double click the
GoogleAppEngineLauncher-1.9.50.dmg file that you
downloaded to open it, then drag the
GoogleAppEngineLauncher icon over to the Applications
folder.
- Double-click GoogleAppEngineLauncher in the
Application folder.
- When prompted to Make command symlinks, click
OK. The symlinks allow you to run important SDK
command-line tools in any terminal window.
Important: The GoogleAppEngineLauncher
is a convenient UI-based tool for running and deploying App
Engine apps, but it does not provide all the features
you'll need. You can use the equivalent
gcloud command-line
tool, for many of the tasks that you'll want to perform.
- Notice that the installation process above unpacks the
contents of the App Engine SDK at the location:
/usr/local/google_appengine
- The App Engine SDK requires Python 2.7, which is installed
by default on Mac OS X 10.6 (Snow Leopard) or later. Verify
your Mac's Python installation using the following command:
/usr/bin/env python -V
If the output looks like
Python 2.7.[NUMBER] then you already have
the correct Python version installed. Otherwise you can
download and install Python 2.7 from the
Python web site.
- Download the App Engine SDK for Python:
file_download
Download
Version:
1.9.50 - 2017-01-23
SHA1 Checksum:
85a0f0d9f460a14703ca687a1fff363cc9a0a0c9
-
To install the SDK on Windows:
- Double-click the SDK file you downloaded
(
GoogleAppEngine-1.9.50.msi) and follow the
prompts to install the SDK.
- You will need Python 2.7 to use the App Engine SDK,
because the
Development
Server is a Python application. Download Python 2.7.X
(don't use a higher version) from the
Python web site.