命令就是sudo -H pip install aws-shell。
1.前提是正确安装python,不过python需要3以上,安装教程见:mac下安装python3;
2.安装时当出现以下错误时,要用命令:sudo pip install matplotlib --upgrade --ignore-installed six,中间可能连接超时,多试几次;
ERROR: python-dateutil 2.8.0 has requirement six>=1.5, but you'll have six 1.4.1 which is incompatible.
ERROR: prompt-toolkit 1.0.16 has requirement six>=1.9.0, but you'll have six 1.4.1 which is incompatible.
Installing collected packages: python-dateutil, docutils, botocore, futures, s3transfer, boto3, pyasn1, rsa, colorama, PyYAML, awscli, wcwidth, prompt-toolkit, aws-shell
Found existing installation: python-dateutil 1.5
Uninstalling python-dateutil-1.5:
3.最后再执行sudo -H pip install aws-shell,即可成功。