Answers for "Unable to import module 'app': No module named 'requests' in lambda"

0

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

#requests library doesn't come by default in lambda. It looks like you are trying to import it in your function / library somewhere
# You would need to zip the requests library in the root of your zip file.
$ pip install requests -t ./.
#  Once it is completed, zip the application and upload it to the function. If you have a requirements.txt, add requests to it.
				(OR)
mkdir lambda_layers
cd lambda_layers
mkdir python
cd python
pip install requests -t ./
cd ..
zip -r python_modules.zip .
Posted by: Guest on May-26-2021
0

Unable to import module 'app': No module named 'requests' in lambda

from botocore.vendored import requests
Posted by: Guest on September-27-2021

Code answers related to "Unable to import module 'app': No module named 'requests' in lambda"

Browse Popular Code Answers by Language