按照这个标准来安装 aws cli https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html
安装完后要确保以下命令加到环境变量里:
编辑文件 ~/.bash_profile 加入以下内容:
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Users/jiangyh/Library/Python/3.6/bin:${PATH}"
export PATH
# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH