Setting up Shapely on AWS Lambda Python functions

前端 未结 2 1335
长情又很酷
长情又很酷 2021-01-25 00:22

I have a tried to setup Shapely on AWS Lambda but was getting the below error always.

module initialization error: Could not find lib geos_c or load         


        
2条回答
  •  感动是毒
    2021-01-25 01:22

    I hit this same issue, and was able to set up to build a layer for use in Lambda. I wrote it up as an open source package here https://github.com/bearflagrobotics/libgeos-lambda-build using Docker to build the binary distribution. You can just drop that in as a layer for your lambda function and run any version of Shapely or Python you want!

提交回复
热议问题