How to Import Python Numpy in AWS Lambda

Importing a Python library in AWS Lambda is painful. Python version, library version, platform version… All of them should be compatible with each other. In this post, we’ll learn how to import any Python library to your lambda function without a lambda layer. Let’s get started!

python book
Photo by Christina Morillo on

AWS Lambda comes with boto3 library by default. To use other libraries you need to include them in Lambda layer. Another option is adding dependencies to your project folder which we’ll use today.

Let’s check some error messages related to library platform compatibility:

Continue reading “How to Import Python Numpy in AWS Lambda”