Cannot use Requests-Module on AWS Lambda

后端 未结 5 1449
故里飘歌
故里飘歌 2020-12-02 11:56

I need to do a rest-call within a python script, that runs once per day. I can\'t pack the \"requests\" package into my python-package using the AWS Lambdas. I get the error

5条回答
  •  再見小時候
    2020-12-02 12:30

    With this command download the folder package

    pip install requests -t .
    

    Run this command on your local machine, then zip your working directory, then upload to aws.

提交回复
热议问题