在mac上安裝awscli遇到:aws command not found
簡單的說以下應該是這篇官方文件 的部分中文版
主要是按照步驟用 pip3 裝完 awscli 後 遇到 aws command not found 的解法
假設你的環境跟我一樣:使用homebrew安裝python3
應該可以在 ~/Library/Python/ 中分別找到 2.7 與 3.7 的資料夾
由於我們剛剛安裝的awscli是用pip3安裝
所以pip3的安裝路徑也會指向 ~/Library/Python/3.7/bin
所以後續的步驟在上述官方文件中
2. Add an export command to your profile script.
的 script 就變成
export PATH=~**/Library/Python/3.7/bin**:$PATH
接著再做
source ~/.bash_profile
即可順利在 command line 上使用awscli
以上