ImportError: cannot import name 'bigquery' from 'google.cloud' (unknown location)

Viewed 5701

I'm trying to deploy a Cloud Function and it is returning me all the time the following error after importing bigquery from google.cloud

ImportError: cannot import name 'bigquery' from 'google.cloud' (unknown location)

I've tried to install all the newest versions and remove and reinstall and persists

Any idea?

1 Answers

Try adding something like google-cloud-bigquery==2.3.1 into requirements.txt of your Google Cloud Function enter image description here

Related