This error can be fixed by running these two commands:
$ sudo pip install --upgrade pip
$ sudo apt-get --reinstall install python-pyasn1 python-pyasn1-modules
With response:
Traceback (most recent call last):
File "/usr/local/bin/aws", line 19, in <module>
import awscli.clidriver
File "/usr/local/lib/python2.7/dist-packages/awscli/clidriver.py", line 17, in <module>
import botocore.session
File "/usr/local/lib/python2.7/dist-packages/botocore/session.py", line 25, in <module>
import botocore.configloader
File "/usr/local/lib/python2.7/dist-packages/botocore/configloader.py", line 18, in <module>
from six.moves import configparser
ImportError: No module named six.moves