aws-toolkit

How to export PATH to “sam build” command?

ⅰ亾dé卋堺 提交于 2021-01-05 08:51:14
问题 I'm developing AWS Lambda function on PyCharm. When I do "Run" button, Following error message. /usr/local/bin/sam build MyFunction --template /Users/miyashiiii/Works/myapp/myapp/template.yaml --build-dir /Users/miyashiiii/Works/myapp/myapp/.aws-sam/build Building codeuri: myapp/ runtime: python3.7 metadata: {} functions: ['MyFunction'] Build Failed Error: PythonPipBuilder:Validation - Binary validation failed for python, searched for python in following locations : ['/usr/bin/python'] which