Python 3.9 is now available in preview.

Installing the Cloud Client Libraries for Python 3

The Cloud Client Library is the idiomatic way for Python 3 developers to integrate their apps with Google Cloud services on the Python 3 runtime.

For example, you can install the corresponding Python client library for Cloud Datastore or Cloud Storage to integrate those services with your app.

For a complete list of all of the Python libraries for the supported Google Cloud services, see APIs & Python Libraries


Assume that you want to use Cloud Datastore on your local machine.

To install the Python client library for Cloud Datastore:

  1. Install the client library locally by using pip:

    pip install google-cloud-datastore

  2. Set up authentication. You can configure the Google Cloud Python libraries to handle authentication automatically or you can provide credentials manually.

  3. Use the Cloud Datastore Client Libraries reference to implement support for the Cloud Datastore service in your app.

If you want to use Python client libraries in your App Engine app, see Specifying Dependencies.