I'm new to Google Cloud Platform, and have uploaded some machine learning code on Jupyter notebook in DataLab.
My issue is although, I installed Google Cloud Storage (using the command: pip install --upgrade google-cloud-storage
), I'm unable to import this.
The following is how I'm importing this package:
>>import numpy
>>import pandas as pd
>>from google.cloud import storage
But I'm getting the following error:
ImportErrorTraceback (most recent call last) in () ----> 1 from google.cloud import storage
ImportError: cannot import name storage
Note:
- This is the content of my JSON config file:
{"TokenSources":["env"]}
- I tried
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/file.json"
, but the error persists. - I verified that this package is indeed installed in my environment by typing pip freeze in the command shell:
google-cloud==0.34.0
google-cloud-datastore==1.7.0
google-cloud-spanner==1.4.0
google-cloud-storage==1.10.0
What am I missing here?