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
These were helpful to resolve the issue for python 3.x version: (I assumed the pip3 has been installed) sudo pip3 install google-cloud-bigquery sudo pip3 install google-cloud-pubsub sudo apt-get upgrade
sudo pip3 install google-cloud-bigquery sudo pip3 install google-cloud-pubsub sudo apt-get upgrade