【问题标题】:Unable to install AWS SAM Cli on Mac无法在 Mac 上安装 AWS SAM Cli
【发布时间】:2019-01-13 00:04:42
【问题描述】:

我正在尝试在我的 Mac 上安装 AWS SAM Cli,因为我正在尝试学习 AWS 服务。但是我已经使用 bundle 成功安装了 AWS cli。但是当我也尝试安装 AWS SAM Cli 时。但它不起作用。这是我到目前为止所做的。

运行此命令

pip install --user aws-sam-cli

一切顺利。

然后我打开并编辑了 ~/.bash_profile。这是.bash_profile的内容

export PATH=/Applications/MAMP/bin/php/php7.2.7/bin:$PATH
# Find your Python User Base path (where Python --user will install packages/scripts)
$ USER_BASE_PATH=$(python -m site --user-base)
# Update your preferred shell configuration
-- Standard bash --> ~/.bash_profile
-- ZSH           --> ~/.zshrc
export PATH=$PATH:$USER_BASE_PATH/bin

然后我关闭终端并运行 sam --version。

这是说找不到命令。我的安装有什么问题?

【问题讨论】:

    标签: amazon-web-services aws-sam


    【解决方案1】:

    现在推荐的安装 SAM CLI 的方法是使用 brew,老实说,它更好,为您省去了很多麻烦,就像您现在面临的那样。详情请见these instructions

    【讨论】:

      猜你喜欢
      • 2018-12-06
      • 2019-06-22
      • 1970-01-01
      • 2019-02-27
      • 2018-06-23
      • 2019-02-19
      • 2017-04-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多