Help us understand the problem. What is going on with this article?

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

おしまい

brainpad
ブレインパッドは、2004年の創業以来、データによるビジネス創造と経営改善に向き合ってきたデータ活用・分析企業です。
http://www.brainpad.co.jp/
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした