title: How to upload a file to Google Cloud Storage on Python 3?
body: <p>How can I upload a file to <a href="https://cloud.google.com/storage/" rel="noreferrer">Google Cloud Storage</a> from Python 3? Eventually Python 2, if it's infeasible from Python 3.</p>
  
  <p>I've looked and looked, but haven't found a solution that actually works. I tried <a href="https://github.com/boto/boto" rel="noreferrer">boto</a>, but when I try to generate the necessary .boto file through <code>gsutil config -e</code>, it keeps saying that I need to configure authentication through <code>gcloud auth login</code>. However, I have done the latter a number of times, without it helping.</p>