按照这里的说明在上安装sam (Ubuntu)
$ brew tap aws/tap
Updating Homebrew...
$ brew install aws-sam-cli
Updating Homebrew...
==> Installing aws-sam-cli from aws/tap
==> Downloading https://github.com/aws/aws-sam-cli/releases/download/v1.4.0//aws-sam-cli-1.4.0.x86_64_linux.bottle.tar.gAlready downloaded: /home/alper/.cache/Homebrew/downloads/6d52b1709eccad9b947a7cc8ef96155867ea2c3be910b31536713390d07dc03c--aws-sam-cli-1.4.0.x86_64_linux.bottle.tar.gz
==> Pouring aws-sam-cli-1.4.0.x86_64_linux.bottle.tar.gz
/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/1.4.0: 4,153 files, 90.8MB
$ sam --version
/home/linuxbrew/.linuxbrew/Cellar/aws-sam-cli/1.4.0/libexec/bin/python3.7: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory得到了蟒蛇的错误。有什么想法吗?
发布于 2022-04-08 15:07:17
请遵循官方文档,在安装WSL;https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-linux.html时不要使用Brew。
我能够用Ubuntu20.04.4LTS为WSL2安装和使用AWS
https://stackoverflow.com/questions/64269746
复制相似问题