AWS Lambda import module error in python

后端 未结 21 1551
醉话见心
醉话见心 2020-12-07 19:56

I am creating a AWS Lambda python deployment package. I am using one external dependency requests . I installed the external dependency using the AWS documentation http://do

21条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-07 20:06

    I found this hard way after trying all of the solutions above. If you're using sub-directories in the zip file, ensure you include the __init__.py file in each of the sub-directories and that worked for me.

提交回复
热议问题