No module named requests on the AWS Python Lambda function

+1 vote

Hi Guys,

I am trying to create one lambda function and also try to read one url inside that lambda function. For that I am using request function, but I am getting this below error.

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

Apr 15, 2020 in AWS by akhtar
• 38,210 points
8,030 views

1 answer to this question.

0 votes

Hi@akhtar,

According to my knowledge requests is not a standard library in AWS lambda. So to use this library you can Import it from the Botocore libraries.

from botocore.vendored import requests
answered Apr 15, 2020 by MD
• 95,300 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,140 points
1,180 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

how to get the list of aws services i am used in aws my account by using the lambda function

Hi@shalk, You can create a session in your ...READ MORE

answered Sep 24, 2020 in AWS by MD
• 95,300 points
410 views