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
gefragt vor 7 Monaten1039 Aufrufe
1 Antwort
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
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen