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
I believe you have lambda_function.py on the Lambda console. You need to first create the Lambda function deployment package, and then use the console to upload the package.
project-dir on your system (locally)lambda_function.py in project-dir, copy the content of lambda_function.py from lambda console and paste it in project-dir/lambda_function.pypip install requests -t /path/to/project-dirproject-dir directory, which is your deployment package (Zip the directory content, not the directory)Go to the Lambda console, select upload zip file in code entry type and upload your deployment package. Import requests should work without any error.