Click here to see your recently viewed pages and most viewed pages.
Hide

Installation

This page contains information about installing the Google APIs Client Library for Python.

System requirements

Installing the client library

You can either use a package manager or download and install the Python client library manually:

Managed installation

Use pip or setuptools to manage your installation (you might need to run sudo first):

  • pip (preferred):
    $ pip install --upgrade google-api-python-client
          
  • Setuptools: Use the easy_install tool included in the setuptools package:
    $ easy_install --upgrade google-api-python-client
    

Manual installation

Download arrow Download the latest client library for Python, unpack the code, and run python setup.py install

App Engine

Because Google App Engine requires that all of the source files for a library must be present in your App Engine project, there is a special installation procedure for App Engine. To install the library and all of its dependencies in an App Engine project, download the file named google-api-python-client-gae-N.M.zip from the list of downloads, where N.M is the version number of the latest release. Unzip that file into your project. For example:

$ cd myproject
$ unzip google-api-python-client-gae-1.2.zip

Download samples

After you have installed the library, you can optionally download and unpack samples. The package names that start with google-api-python-client-samples- contain samples using this library in many scenarios. See the Sample Applications page for more information about these and other samples.