AWS CLI $PATH Settings

后端 未结 14 2529
悲&欢浪女
悲&欢浪女 2021-01-30 04:50

I am following the AWS CLI Setup guide. I have managed to successfully install the tool on my Mac OS X terminal with the following output:

Running cmd: /usr/bin/         


        
14条回答
  •  梦谈多话
    2021-01-30 05:35

    when you run the command: pip3 install awscli --upgrade --user

    watch closely where the aws cli tool gets installed, you can see the path on terminal log, in my case I got something like this:

    awscli in ./Library/Python/3.6/lib/python/site-packages

    Now you should add to your .bash_profile the same path but on the bin folder(removing from the lib path and instead put your bin path) like this:

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

提交回复
热议问题