nficano / python-lambda

A toolkit for developing and deploying serverless Python code in AWS Lambda.
ISC License
1.5k stars 228 forks source link

Numpy with python-lambda #130

Open marcelinhov2 opened 6 years ago

marcelinhov2 commented 6 years ago

Hi guys, first o all, thanks for your hard work.

We are trying to deploy a lambda function that requires numpy, and we don't know what to do anymore...

Can you guys help us?

Thanks :)

soapergem commented 6 years ago

I've not done much with numpy, or pandas, or any of the other data science libraries. Nor have I tried to use python-lambda on them. But what I do know is that libraries such as numpy are HUGE, and probably very ill-suited for Lambda in general.

Before even trying to tackle the problem of getting them deployed into Lambda I would ask myself, should I be deploying this to Lambda? Using Docker is probably a much better solution. Have you tried getting your code running in a Docker container and deploying that elsewhere?

kmbenitez commented 5 years ago

I'm also guessing that you may run into some issues with requiring libraries to be compiled against the correct architecture. I've been following the process here after doing local tests to run lambda deploy from within a docker container.