The AWS CLI utility is written in Python. While there are several ways to install it, we will use PyPA, the Python package manager, to install this tool.
To install PyPA, depending on your OS, you will need to run the following commands:
- On Windows:
$ sudo apt install python-pip
- On macOS X:
$ sudo easy_install pip
- On Debian-based Linux distributions:
$ sudo apt-get install python-pip python-dev build-essential
- On Red Hat/CentOS-based Linux distributions:
$ sudo yum -y install python-pip
Once PyPA is installed, you will get access to the pip command.
Lastly, to install the AWS CLI using the pip command, you simply need to run the following command:
$ sudo pip install --upgrade --user awscli
If you ...