Trying to install aws cli using pip following these instructions: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html#install-tool-pip
But when I try to run aws --version
I have the following error command 'aws' not found
.
Try to follow the troubleshoot part but it did not lead anywhere.
Ubuntu 18.04.3 LTS
Pip: 19.2.3
Python: 3.7.4
It sounds like the CLI wasn't installed. Please share the output of running your install commands and any troubleshooting steps you took and we will be able to help.
@jamesls I have solved by using the bundled installer.
I think that installing the cli using pip has some problem. I have tried with three different systems following the instructions provided, but in all three of them it was resulting in the same output.
Hi, I encountered the exact same problem, also wih Ubuntu 18.
I used
pip install awscli --upgrade --user
and got:
vm@vm:~$ aws --version
Command 'aws' not found, but can be installed with:
sudo snap install aws-cli # version 1.16.266, or
sudo apt install awscli
See 'snap info aws-cli' for additional versions.
It seems to work, when I use "sudo apt install awscli "
As my understanding installing the cli with pip
is broken, not sure why.
I have tried with multiple ubuntu versions on different machines and still the same error, that is why I have opted for the bundled installer.
I tried the following command and it seems to fix the issue:
pip3 install awscli --ignore-installed six
Step 1 : - Connect your ubuntu server and type aws on the console like below and you see the message
root@ip:~# aws
Command 'aws' not found, but can be installed with:
snap install aws-cli # version 1.15.58, or
apt install awscli
See 'snap info aws-cli' for additional versions.
Step 2:- User this is command to install aws cli-- *snap install aws-cli --classic*
root@ip-172-31-39-184:~# snap install aws-cli --classic
aws-cli 1.15.58 from Amazon Web Services (aws✓) installed
Step 3 - type aws
root@ip-172-31-39-184:~# aws
usage: aws [options]
To see help text, you can run:
aws help
aws
aws
aws: error: the following arguments are required: command
Your error will fix
All the best
Most helpful comment
I tried the following command and it seems to fix the issue:
pip3 install awscli --ignore-installed six