I need to import Pubsub_v1 and bigquery from google.cloud module. I have installed it and pip freeze shows below :
gapic-google-cloud-pubsub-v1==0.15.4 googl
Upgraded the other google.cloud modules using
$sudo pip install --upgrade google-cloud-bigquery $sudo pip install --upgrade google-cloud-storage $sudo pip install --upgrade google-cloud-logging
It resolves the issue.