I have updated gcloud components. I have installed BigQuery lib using pip install following the instructions in the online doc. I am running Python 2.7.10.
when I run a python script that has the following line:
from google.cloud import bigquery
it returns the following error:
ImportError: No module named google.cloud
I tried python 3.6 and still get the same error.
I did reintsall google sdk and still got the same error.
if I do touch /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/google/init.py then import google woudl work, but not import google.cloud
any help is appreciated.
The Cloud SDK is not enough. Just use
pip install --upgrade google-cloud-bigquery
, see https://github.com/GoogleCloudPlatform/google-cloud-python/tree/master/bigquery