1
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 5 years have passed since last update.

[CentOS7]pythonのバージョン関係なしにaws cliをインストール

1
Posted at

前提

aws cliはv1,v2があります。
v2はpythonを必要なくなったので、バージョンに悩むことがなくなりました。
v1のインストール方法はこちらから。

インストール

  • インストール前のコマンドの確認
$ aws --version
-bash: aws: コマンドが見つかりません
  • pythonのバージョン確認
$ ll /usr/bin/python*
lrwxrwxrwx. 1 root root    7  9月 10 22:29 /usr/bin/python -> python2
lrwxrwxrwx. 1 root root    9  9月 10 22:29 /usr/bin/python2 -> python2.7
-rwxr-xr-x. 1 root root 7136 11月  6  2016 /usr/bin/python2.7
  • インストール
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
  • インストール後のバージョン確認
$ aws --version
aws-cli/2.0.47 Python/3.7.3 Linux/3.10.0-514.el7.x86_64 exe/x86_64.centos.7

aws cliv2が入ってます。
また、python3.7を使用しているようです。

  • pythonのバージョン確認
$ ll /usr/bin/python*
lrwxrwxrwx. 1 root root    7  9月 10 22:29 /usr/bin/python -> python2
lrwxrwxrwx. 1 root root    9  9月 10 22:29 /usr/bin/python2 -> python2.7
-rwxr-xr-x. 1 root root 7136 11月  6  2016 /usr/bin/python2.7

pythonは2.7のみ入っています。

参考

1
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
1
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?