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
I had the same problem, it happened to me because I installed google-cloud-pubsub before google-cloud so here is my advise :
sudo pip uninstall google-cloud-pubsub sudo pip uninstall google-cloud sudo pip install google-cloud sudo pip install google-cloud-pubsub