Note: The App Engine SDK is under active development; please keep this in mind as
you explore its capabilities. See the Java | Python | Go | PHP SDK
Release Notes for information on the most recent changes to the App Engine SDK.
If you discover any issues, feel free to notify us via our
Issue Tracker.
By downloading, you agree to be bound by the Terms that govern use of the App Engine SDK.
Unzip the App Engine SDK file you downloaded (google_appengine_1.9.38.zip),
for example:
unzip google_appengine_1.9.38.zip
There is no App Engine installation script that you need to run after unzipping the files.
Add the google_appengine directory to your PATH:
export PATH=$PATH:/path/to/google_appengine/
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.
Installing on Mac OS X
To install the SDK on Mac OS X:
In the Finder, click Go > Applications to open the Applications
folder.
Double click the App Engine SDK file you downloaded
(GoogleAppEngineLauncher-1.9.38.dmg) 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 will need to use
the command-line equivalent, appcfg.py, for many of the features
you'll want to use.
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 (Lion) 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.
Installing on Windows
To install the SDK on Windows:
Double-click the SDK file you downloaded (GoogleAppEngine-1.9.38.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.
The App Engine Java SDK requires Java 7 bytecode level.
You can use either Java 7 or Java 8; be sure to set the javac compiler flags to generate 1.7 bytecode:
-source 1.7 -target 1.7
If you don't have Java or the correct Java version
installed, download and install the
Java SE Development Kit
(JDK) for Linux.
Installing on Mac OS X
To install the SDK on Mac OS X:
Double click the App Engine SDK .zip file you downloaded
(appengine-java-sdk-1.9.38.zip) to extract the SDK into a folder.
The App Engine Java SDK requires Java 7 bytecode level.
You can use either Java 7 or Java 8; be sure to set the javac compiler flags to generate 1.7
bytecode:
-source 1.7 -target 1.7
If you don't have Java or the correct Java version installed, download and install the
Java SE Development Kit
(JDK) for Mac OS X.
Add the appengine-java-sdk-1.9.38 directory to your PATH:
Double click the App Engine SDK .zip file you downloaded
(appengine-java-sdk-1.9.38.zip) to extract the SDK into a folder.
The App Engine Java SDK requires Java 7 bytecode level.
You can use either Java 7 or Java 8; be sure to set the javac compiler flags to generate 1.7 bytecode:
-source 1.7 -target 1.7
If you don't have Java or the correct Java version
installed, download and install the
Java SE Development Kit
(JDK) for Windows.
Unzip the App Engine PHP file you downloaded (google_appengine_1.9.38.zip). For example:
unzip google_appengine_1.9.38.zip
There is no App Engine installation script that you need to run after unzipping the files.
Add the google_appengine directory to your PATH:
export PATH="$PATH:/path/to/google_appengine/"
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.
Build and install the
PHP interpreter. On Debian-based
Linux systems, you can use the following command:
sudo apt-get install php5-cli
Or, alternatively, if you're using Redhat, use the following command:
Install MySQL on your local machine. (You will need this to test your app
locally.) On Debian-based Linux systems, you can use the following command:
sudo apt-get install mysql-server-5.5
You will be prompted to enter a password for the MySQL root user; make sure that you remember it.
Installing on Mac OS X
To install the SDK on Mac OS X:
In the Finder, click Go > Applications to open the Applications
folder.
Double click the App Engine SDK file you downloaded
(GoogleAppEngineLauncher-1.9.38.dmg) 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 will need to use
the command-line equivalent, appcfg.py, for many of the features
you'll want to use.
Notice that the installation process above unpacks the contents of the App
Engine SDK at the location:
/usr/local/google_appengine
The App Engine PHP SDK requires Python 2.7, which is installed by default on
Mac OS X 10.6 (Lion) 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.
Most PHP apps use a MySQL backend, which is not packaged with the App Engine
SDK. To setup MySQL, visit the
MySQL Downloads page; the
"Community Server" edition will suffice for your local development.
Installing on Windows
To install the SDK on Windows:
Double-click the SDK file you downloaded (GoogleAppEngine-1.9.38.msi)
and follow the prompts to install the SDK.
You will need Python 2.7 to use the App Engine PHP 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.
Note: The PHP SDK includes binaries for the PHP 5.4
runtime, including all enabled
extensions, so there is no need to download PHP separately for the purposes
of developing with App Engine -- you just need Python.
Most PHP apps use a MySQL backend, which is not packaged with the App Engine
SDK. To set up MySQL, visit the
MySQL Downloads page; the
"Community Server" edition will suffice for your local development.
Unzip the App Engine SDK file you downloaded (go_appengine_sdk_linux_amd64-1.9.38.zip
or go_appengine_sdk_linux_386-1.9.38.zip) to a directory of your choice. For example:
unzip go_appengine_sdk_linux_amd64-1.9.38.zip
There is no App Engine installation script that you need to run after unzipping the files.
Add the go_appengine directory to your PATH:
export PATH=$PATH:/path/to/go_appengine/
Go requires Python 2.7.x; don't use a higher version. (The Go SDK uses tools
from the App Engine Python SDK, so Python is required.) 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.
Installing on Mac OS X
To install the SDK on Mac OS X 32-bit or 64-bit:
Double-click the App Engine SDK file you downloaded
(go_appengine_sdk_darwin_amd64-1.9.38.zip or go_appengine_sdk_darwin_386-1.9.38.zip) to
extract the SDK to a folder. It doesn't matter where you install the SDK. We suggest adding
the folder to your PATH:
export PATH=/path/to/go_appengine:$PATH
Go requires Python 2.7.x; don't use a higher version. (The Go SDK uses tools
from the App Engine Python SDK, so Python is required.) 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 from the
Python web site.
Note: The Google App Engine Launcher does not work with Go apps.
Installing on Windows
To install the SDK on Windows 64-bit or 32-bit:
Double-click the App Engine SDK file you downloaded (go_appengine_sdk_windows_amd64-1.9.38.zip
or go_appengine_sdk_windows_386-1.9.38.zip) to extract the SDK files to a location of your choice.
It doesn't matter where you install the SDK; however you might want to add the location
to your %PATH%.
Go requires Python 2.7.x; don't use a higher version. (The Go SDK uses tools
from the App Engine Python SDK, so Python is required.) Make sure Python 2.7 is installed on your machine using the following command:
python -V
The output should look like this: Python 2.7.<number>. If
Python 2.7 isn't installed, install it now from the
Python web site.
Optionally, to simplify development and deployment, consider adding the
App Engine Go SDK directory to your PATH environment variable
by finding the "Environment Variables" in the Advanced System Settings dialog
and setting it there.