Set GOOGLE_APPLICATION_CREDENTIALS in Python project to use Google API

If you’re working on a jupyter notebook and want to set GOOGLE_APPLICATION_CREDENTIALS environment variable in Python code :

import os
os.environ["GOOGLE_APPLICATION_CREDENTIALS"]="/path/to/file.json"

Leave a Comment