Manage AWS services through terminal utilities.
MacOS Homebrew installs pip3
for you along with Python 3.
brew install python
The --upgrade
option tells pip3 to upgrade any requirements that are already installed. The --user
option tells pip3 to install the program to a subdirectory in your user directory to avoid modifying libraries used by your operating system.
pip3 install awscli --upgrade --user
On macOS, edit the .bash_profile
file in your home directory (/Users/yourusername/.bash_profile
).
- If you don't have a PATH variable set already, then add:
export PATH=/Users/yourusername/Library/Python/3.7/bin
- If you already have a PATH set, append it to the existing variable:
export PATH=/usr/local/bin:$PATH:/Users/yourusername/Library/Python/3.7/bin
- Save your changes to
.bash_profile
and exit - Reload the environment variables
source ~/.bash_profile
Lastly, run aws --version
to verify that the AWS tools are available in any terminal directory. The result should look like:
aws-cli/1.16.197 Python/3.7.3 Darwin/18.6.0 botocore/1.12.187