Lots of the BigQuery examples begin with:
import gcp.bigquery as bq
But I get ImportError: No module named gcp.bigquery
whenever I try to run this.
How do I install this library?
I'm working in a virtualenv with python 2.7. I've tried pip install gcp
, pip install gcloud
, and pip install google-api-python-client
.
None of them help and I can't find any documentation. Help!
UPDATE: the reason I want to use gcp
is that I want to get data from BigQuery, preferably in CSV form, from within a Python script. If there's a better way to do this, I'm all ears...