AWS Account | AWS CLI | AWS CLI Profile | Amazon Developer Account | ASK CLI | ASK CLI Profile | Deploy a Skill
You can install the AWS CLI on Linux using pip, a package manager for Python.
Important
The awscli package is available in repositories for other package managers such as APT and yum, but it is not guaranteed to be the latest version unless you get it from pip
Note: If you already have the CLI installed, continue to Setup an AWS CLI Profile, or, if you don't have an AWS account, follow the guide to create an AWS account first.
In order to install the AWS CLI on your Mac you should make sure to have:
- Python (v2.6+ or v3+)
- pip
Check whether you have Python by running this command on the Terminal:
$ python --versionNote on some systems, Python may be installed as python3 so if you don't get any results using the command above, you should also try running the command using python3 instead of python
Check whether you have pip installed by running the following command on the Terminal:
$ pip --versionNote on some systems, pip may be installed as pip3 so if you don't get any results using the command above, you should also try running the command using pip3 instead of pip
-
If Python 2.7 or later is not installed, install Python with your distribution's package manager. The command and package name varies:
-
On Debian derivatives such as Ubuntu, use
APT:$ sudo apt-get install python3
-
On Red Hat and derivatives, use
yum:$ sudo yum install python
-
On SUSE and derivatives, use
zypper:$ sudo zypper install python3
-
-
If you don't have
pip, installpipwith the script provided by the Python Packaging Authority.-
Download the installation script from pypa.io:
$ curl -O https://bootstrap.pypa.io/get-pip.py
-
Run the script with Python:
$ python get-pip.py --user
-
Make sure to add
pipto your environment'sPATHvariable
-
Use pip to install the AWS CLI:
$ pip install awscli --upgrade --userVerify that the AWS CLI is installed correctly:
$ aws --version
aws-cli/1.11.84 Python/3.6.2 Linux/4.4.0-59-generic botocore/1.5.47Troubleshooting
If after installing the aws command doesn't work, you may need to update your OS's PATH environment variable. Follow the instructions here.
You may also need to ensure that the aws script has a file mode that is executable. Follow instructions here.