For Ubuntu 16.04, I used parts of other answers and comments and simply reloaded bash instead of reloading.
I installed aws-cli using apt, so I uninstalled it first:
sudo apt-get remove awscli
Then I could install pip (I decided to use sudo for a global installation with pip2):
sudo pip install -U awscli
Since I was doing this on the server, I did not want to restart it, but rebooting bash did the trick:
source ~/.bashrc
At the moment, I could use the new version of AWS Cli
aws --version
petroleyum Jan 31 '18 at 21:59 2018-01-31 21:59
source share