PowerShell to join the computer to domain
April 5, 2018
Copy (scp) file from remote server to Mac using ssh tunnel
June 17, 2018

AWS cli installation Procedure on MacOS

Installing the AWS CLI seems easy on macOS (OSX) as per the step given by AWS here but there are some issues with python and pip due to its versions conflicts.

The normal error I faced on 2 machines like

pip3 install awscli --upgrade --user
Traceback (most recent call last):
File "/usr/local/bin/pip3", line 7, in <module>
from pip import main
ImportError: cannot import name 'main' 

I used one step to solve this:

  1. Change  the install command to following

$ sudo python3 -m pip install awscli --upgrade --user

The AWS CLI should be installed without error.

The above command doesn’t conflict with other versions and directly call the 3 version. This should also work on Windows.

Your suggestions and experiences are welcome.