没有为 aws sam cli 配置 Python

时间:2020-12-19 02:56:15

标签: python amazon-web-services aws-lambda serverless aws-sam

我正在按照本教程构建 SAM 应用程序:https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-getting-started-hello-world.html

当我执行 sam build 时,出现以下错误

❯ sam build
Building codeuri: hello_world/ runtime: python3.8 metadata: {} functions: ['HelloWorldFunction']

Build Failed
Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations  : ['/usr/bin/python'] which did not satisfy constraints for runtime: python3.8. Do you have python for runtime: python3.8 on your PATH?

我通过这样做检查了我的蟒蛇

❯ which python
python: aliased to python3

当我做python版本时,我得到了这个

❯ python --version
Python 3.8.2

那么我缺少什么以及如何解决这个问题?

0 个答案:

没有答案