Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What is going on with this article?

More than 1 year has passed since last update.

@Hyperion13fleet

GoogleCloudAPIのライブラリが競合するから競合しないバージョンを貼っとく [備忘]

備忘

ローカルの仮想環境でポコポコいろんなGCPのライブラリをpip installしてるとライブラリの競合が起こることがあるので、競合がおきないversionを指定してrequirementsを書いておく

pip用にversion指定してrequirements置いておく

特に何も考えずにbigguqey(google-cloud-bigquery)とGCS(google-cloud-storage)をpip installで最新版をインストールするとライブラリ内でコンフリクトが起きたので競合が起きないようなrequirements.txtを置いておく

requirements.txt
google-api-core==1.14.3
google-api-python-client==1.7.11
google-auth==1.8.2
google-auth-httplib2==0.0.3
google-auth-oauthlib==0.4.1
google-cloud-bigquery==1.23.0
google-cloud-core==1.1.0
google-cloud-storage==1.23.0
google-resumable-media==0.5.0
googleapis-common-protos==1.6.0
grpc-google-iam-v1==0.12.3

おしまい

1
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What is going on with this article?