Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations : ['/usr/local/bin/python', '/usr/bin/python'] which did not satisfy constraints for runtime: python3.7. #142
mingtao-sam-app\ =>sam build
Building function 'HelloWorldFunction'
Build Failed
Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations : ['/usr/local/bin/python', '/usr/bin/python'] which did not satisfy constraints for runtime: python3.7. Do you have python for runtime: python3.7 on your PATH?
Follow the aws sam tutorial https://www.udemy.com/course/aws-certified-developer-associate-dva-c01/learn/lecture/19731762#questions Run command
sam build
and get errorPython version is 2.7