Unable to install aws cli to Ubuntu

0

I have recently installed Ubuntu 22.04 in my laptop and there I am trying to install aws CLI but I am getting various error

I have installed AWS CLI using below command

pip install awscli --user

and below messages were received in the terminal

Collecting awscli Using cached awscli-1.29.63-py3-none-any.whl (4.3 MB) Requirement already satisfied: colorama<0.4.5,>=0.2.5 in /usr/lib/python3/dist-packages (from awscli) (0.4.4)

Requirement already satisfied: docutils<0.17,>=0.10 in ./.local/lib/python3.10/site-packages (from awscli) (0.16)

Requirement already satisfied: botocore==1.31.63 in ./.local/lib/python3.10/site-packages (from awscli) (1.31.63)

Requirement already satisfied: s3transfer<0.8.0,>=0.7.0 in ./.local/lib/python3.10/site-packages (from awscli) (0.7.0)

Requirement already satisfied: rsa<4.8,>=3.1.2 in ./.local/lib/python3.10/site-packages (from awscli) (4.7.2)

Requirement already satisfied: PyYAML<6.1,>=3.10 in /usr/lib/python3/dist-packages (from awscli) (5.4.1)

Requirement already satisfied: urllib3<2.1,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore==1.31.63->awscli) (1.26.5)

Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/lib/python3/dist-packages (from botocore==1.31.63->awscli) (2.8.1)

Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /usr/lib/python3/dist-packages (from botocore==1.31.63->awscli) (0.10.0)

Requirement already satisfied: pyasn1>=0.1.3 in /usr/lib/python3/dist-packages (from rsa<4.8,>=3.1.2->awscli) (0.4.8)

Installing collected packages: awscli Successfully installed awscli-1.29.63

But when I run the version command as below then getting below error

aws --version

bash: /usr/local/bin/aws: cannot execute binary file: Exec format error

Below is the system architecture info

uname -m

x86_64

Atif
질문됨 7달 전1039회 조회
1개 답변
1

From the error, It looks like the AWS CLI binary that you installed is not compatible with your architecture.

To resolve this issue, you can try installing the AWS CLI through the official distribution of AWS. This method is always recommended because it always installs the most recent AWS CLI version. Kindly follow the below documentation to install AWS CLI in ubuntu.

[+] https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions

profile picture
답변함 7달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인