ImportError: cannot import name pubsub_v1

后端 未结 4 1793
被撕碎了的回忆
被撕碎了的回忆 2020-12-19 02:36

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         


        
4条回答
  •  不知归路
    2020-12-19 03:04

    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

提交回复
热议问题