How to uninstall aws-cli

后端 未结 6 1443
无人及你
无人及你 2020-12-29 03:05

I am trying to set up an \"Amazon Elastic Container Registry\" but I get the following error when using this command: aws ecr get-login --no-include-email --region us-

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 03:41

    I had a similar issue. Answering in case someone else does too. I think I had originally installed it without pip like this: https://docs.aws.amazon.com/cli/latest/userguide/awscli-install-bundle.html. So you just need to uninstall it like this (as instructed in above link):

    $ sudo rm -rf /usr/local/aws
    $ sudo rm /usr/local/bin/aws
    

    Then you can re-install it with pip3: https://docs.aws.amazon.com/cli/latest/userguide/cli-install-macos.html

    Basically:

    pip3 install awscli --upgrade --user
    

    Then add it to your path

    export PATH=/Users/yourname/Library/Python/3.6/bin/:$PATH
    

提交回复
热议问题