Getting PIL/Pillow 4.2.1 to upload properly to AWS Lambda Py3.6

后端 未结 3 676
温柔的废话
温柔的废话 2021-02-19 04:03

Background

I have been struggling for the past few days to deploy a Lambda that uses Pillow, and I am deploying using Python 3.6. It may be noteworthy a

3条回答
  •  情歌与酒
    2021-02-19 04:42

    You can use a precompiled version of the PIL available here: https://github.com/Miserlou/lambda-packages

    Just extract PIL folder to the deployment package and it should work.

提交回复
热议问题