How can I go about downloading a package in a lambda during runtime. I am trying to use the module geopandas which is too large for a layer
I am currently trying to pip install the package during runtime to a tmp folder but getting an error 'Importing the numpy C-extensions failed'. I have tried downloading the package from s3 during runtime and then get an error no module geopandas. I have already tried adding the pythonpath=/tmp env variable. I am trying to avoid using a docker container for this particular project.
source https://stackoverflow.com/questions/76838608/how-can-i-go-about-downloading-a-package-in-a-lambda-during-runtime-i-am-trying
Comments
Post a Comment