AWS CLI $PATH Settings

后端 未结 14 2209
悲&欢浪女
悲&欢浪女 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条回答
  •  -上瘾入骨i
    2021-01-30 05:31

    Take a look at the note on https://docs.aws.amazon.com/cli/latest/userguide/install-bundle.html

    By default, the install script runs under the system default version of Python. If you have installed an alternative version of Python and want to use that to install the AWS CLI, run the install script with that version by absolute path to the Python executable.

    For the step where you run the install executable

    instead of doing just:

    $ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

    Find out where your python is installed for example

    $ which python

    and then use the path to install the executable like

    $ sudo awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

    The above should fix the problem.

提交回复
热议问题