没有为 aws sam cli 配置 Python

问题描述

我正在按照本教程构建 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

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)