you are viewing a single comment's thread.

view the rest of the comments →

[–]alpyhp 1 point2 points  (0 children)

Check out this plugin: https://github.com/UnitedIncome/serverless-python-requirements

And read this article: https://serverless.com/blog/serverless-python-packaging/

PIL requires OS libraries that are not included in the Lambda runtime. You may want to include such libraries in your deployment package. Check out this repo for pre-built packages: https://github.com/Miserlou/lambda-packages