0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

aws cliをインストールする際、botocoreとs3transferのせいで失敗する人へ

Posted at

aws cliをインストールする際、botocoreとs3transferのせいで失敗する人へ

 

aws cliのインストール途中のエラー

aws cliをインストールしたら以下のようなログが出た。

bombanira@KyosukesMBP964:~/tmp$ pip3 install awscli --upgrade --user
Collecting awscli
Using cached awscli-1.18.31-py2.py3-none-any.whl (3.0 MB)
Requirement already satisfied, skipping upgrade: PyYAML<5.4,>=3.10; python_version != "3.4" in /Applications/anaconda3/lib/python3.7/site-packages (from awscli) (5.1.2)
Requirement already satisfied, skipping upgrade: rsa<=3.5.0,>=3.1.2 in /Applications/anaconda3/lib/python3.6/site-packages (from awscli) (3.4.2)
Requirement already satisfied, skipping upgrade: docutils<0.16,>=0.10 in /Applications/anaconda3/lib/python3.7/site-packages (from awscli) (0.15.2)
Requirement already satisfied, skipping upgrade: colorama<0.4.4,>=0.2.5; python_version != "3.4" in /Applications/anaconda3/lib/python3.6/site-packages (from awscli) (0.3.9)
Collecting s3transfer<0.4.0,>=0.3.0
Using cached s3transfer-0.3.3-py2.py3-none-any.whl (69 kB)
Collecting botocore==1.15.31
Using cached botocore-1.15.31-py2.py3-none-any.whl (6.0 MB)
Requirement already satisfied, skipping upgrade: pyasn1>=0.1.3 in /Applications/anaconda3/lib/python3.7/site-packages (from rsa<=3.5.0,>=3.1.2->awscli) (0.4.8)
Requirement already satisfied, skipping upgrade: python-dateutil<3.0.0,>=2.1 in /Applications/anaconda3/lib/python3.7/site-packages (from botocore==1.15.31->awscli) (2.8.1)
Requirement already satisfied, skipping upgrade: urllib3<1.26,>=1.20; python_version != "3.4" in /Applications/anaconda3/lib/python3.7/site-packages (from botocore==1.15.31->awscli) (1.24.2)
Requirement already satisfied, skipping upgrade: jmespath<1.0.0,>=0.7.1 in /Applications/anaconda3/lib/python3.6/site-packages (from botocore==1.15.31->awscli) (0.9.4)
Requirement already satisfied, skipping upgrade: six>=1.5 in /Applications/anaconda3/lib/python3.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore==1.15.31->awscli) (1.13.0)
ERROR: boto3 1.4.2 has requirement botocore<1.5.0,>=1.4.1, but you'll have botocore 1.15.31 which is incompatible.
ERROR: boto3 1.4.2 has requirement s3transfer<0.2.0,>=0.1.0, but you'll have s3transfer 0.3.3 which is incompatible.
Installing collected packages: botocore, s3transfer, awscli
Successfully installed awscli-1.18.31 botocore-1.15.31 s3transfer-0.3.3

エラー文は以下の2つです。

ERROR: boto3 1.4.2 has requirement botocore<1.5.0,>=1.4.1, but you'll have botocore 1.15.31 which is incompatible.
ERROR: boto3 1.4.2 has requirement s3transfer<0.2.0,>=0.1.0, but you'll have s3transfer 0.3.3 which is incompatible.

 

試した方法

 

  1. 問題のライブラリをアンインストール後、再度インストールする。

    pip3 uninstall botocore
    pip3 uninstall s3transfer
    pip3 install awscli --upgrade --user
    
  1. pythonをアップデートする。

    conda update python
    pip3 install awscli --upgrade --user
    

 

1では無理でした。しかし、2を行うと成功しました。(ちなみに上記の2はアナコンダでpythonを管理している人しかできません)

 

まとめ

  1. aws cliインストール時にライブラリに関するエラーが起きた
  2. python本体をアップデートしたら成功した。

 

** python アップデートしろ💢💢💢**

 

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?