ImportError: No module named 'google'

I could fix it by installing the following directly.

pip install google.cloud.bigquery
pip install google.cloud.storage

According to https://github.com/googleapis/google-api-python-client#installation, you need to install the google-api-python-client package:

pip install --upgrade google-api-python-client

Use this both installation and then go ahead with your Python code:

pip install google-cloud
pip install google-cloud-vision

I faced the same issue, and I was trying to import translate from google.cloud, but I kept getting the same error.

This is what I did

  1. pip install protobuf
  2. pip install google-cloud-translate

And to install the storage service from google google-cloud-storage, it should be installed separately.

Ref - https://cloud.google.com/python/

Tags:

Python

Spyder