If you haven’t already, install the library using pip:
pip install google-cloud-bigquery
pip install --upgrade google-cloud-bigquery
If you’re using a virtual environment, make sure it’s activated before running your code. The google-cloud-bigquery library needs to be installed within the active environment for it to be recognized.
Double-check your import statement. It should be:
python:
from google.cloud import bigquery
If the pip not worked then use pip3:
Failed - pip3 install --upgrade google-cloud
Worked - pip3 install --upgrade google-cloud-bigquery
Worked - pip3 install --upgrade google-cloud-storage