aws lambda Unable to import module 'lambda_function': No module named 'requests'

后端 未结 4 1012
北恋
北恋 2020-12-28 17:50

I have recently started to use AWS Lambda to use triggers against some python code I have written. I currently have 2 lambda functions, both of which have been created with

4条回答
  •  隐瞒了意图╮
    2020-12-28 18:27

    So this is what resolved in my case

    Handler :: "yfinance_lamdba.lambda_handler"

    In the above line

                   **yfinance_lamdba** is filename 'yfinance_script.py'
    
                   **lambda_handler** is function 'def lambda_handler' which has actual code
    

提交回复
热议问题