Advanced Setup
Note
Nothing on this page is required for standard access. In most cases, you should just install pittgoogle instead.
Install Libraries for Google Cloud APIs
Python
You can pip install any of the Google Cloud python libraries. Here are the 3 we use most.
pip install google-cloud-bigquery
pip install google-cloud-pubsub
pip install google-cloud-storage
Here is a complete list: Python Cloud Client Libraries.
Command Line
The Google Cloud SDK includes the 3 command line tools: gcloud, bq, and gsutil (see default components ).
To install on Windows, use the installer. For Linux and Mac, use:
curl https://sdk.cloud.google.com | bash
In either case, follow the instructions to complete the installation. Then open a new terminal or restart your shell. Make sure your environment variables are set, reset them if needed. Then initialize gcloud using
gcloud init
and follow the directions. Note that this may open a browser and ask you to complete the setup there.
The remaining steps are optional, but recommended for the smoothest experience.
Set your new project as the default:
gcloud config set project "$GOOGLE_CLOUD_PROJECT"
Instruct gcloud to authenticate using your key file containing service account credentials:
gcloud auth activate-service-account \
--project="$GOOGLE_CLOUD_PROJECT" \
--key-file="$GOOGLE_APPLICATION_CREDENTIALS"