title: Firebase upload image from python to firebase-storage
body: <p>I am find this docs <a href="https://firebase.google.com/docs/storage/gcp-integration#apis" rel="nofollow noreferrer">https://firebase.google.com/docs/storage/gcp-integration#apis</a></p>
  
  <p>Here is code from this docs</p>
  
  <pre><code># Import gcloud
  from google.cloud import storage
  
  # Enable Storage
  client = storage.Client()
  
  # Reference an existing bucket.
  bucket = client.get_bucket('my-existing-bucket')
  
  # Upload a local file to a new file to be created in your bucket.
  zebraBlob = bucket.get_blob('zebra.jpg')
  zebraBlob.upload_from_filename(filename='/photos/zoo/zebra.jpg')
  
  # Download a file from your bucket.
  giraffeBlob = bucket.get_blob('giraffe.jpg')
  giraffeBlob.download_as_string()
  </code></pre>
  
  <p>In line <code>client = storage.Client()</code> </p>
  
  <p>Said:</p>
  
  <blockquote>
    <p>Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credential and re-run the application</p>
  </blockquote>
  
  <p>In the next step I am put</p>
  
  <pre><code>from oauth2client.client import GoogleCredentials
  GOOGLE_APPLICATION_CREDENTIALS = 'credentials.json'
  credentials = GoogleCredentials.get_application_default()
  </code></pre>
  
  <p>Said:</p>
  
  <blockquote>
    <p>The Application Default Credentials are not available. They are available if running in Google Compute Engine</p>
  </blockquote>
  
  <p>And my final question is how to authenticate in Google Compute Engine.</p>