I am getting the below exception while trying to run any AWS command on my MacBook, for example:
Command
aws s3api create-bucket --bucket my_backup --region us-west-2 --create-
bucket-configuration LocationConstraint=us-west-1
Exception
Traceback (most recent call last):
File "/Users/avinash/.local/share/virtualenvs/pipend_shell_3-
x8skfE25/bin/aws", line 7, in <module>
from aws.main import main
File "/Users/avinash/.local/share/virtualenvs/pipend_shell_3-
x8skfE25/lib/python3.6/site-packages/aws/main.py", line 23
print '%(name)s: %(endpoint)s' % {
^
SyntaxError: invalid syntax
I am using Python 3.6.5 and have installed aws:
pip install aws