'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 in AWS by akhtar
• 24,570 points
2,213 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 by MD
• 55,020 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer