How to install gcp in Python?

前端 未结 6 2079
长情又很酷
长情又很酷 2021-01-15 14:55

Lots of the BigQuery examples begin with:

import gcp.bigquery as bq

But I get ImportError: No module named gcp.bigquery whenev

6条回答
  •  猫巷女王i
    2021-01-15 15:16

    You can build the library from datalab teams' content on github:

    1. Clone the repository https://github.com/GoogleCloudPlatform/datalab/
    2. Run tools/initenv.sh
    3. Run sources/build.sh
    4. There you have it under sources/build/

    Hope this helps. Executing the docker image locally does not work for me at least.

提交回复
热议问题