LoginSignup
1

More than 3 years have passed since last update.

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

Last updated at Posted at 2020-01-13

備忘

ローカルの仮想環境でポコポコいろんな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

おしまい

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1