简体   繁体   中英

AWS lambda layers

I am trying to use pandas with an AWS lambda function. I downloaded pandas, numpy, pytz, xlrd, and openpyxl from pypi.org, unpacked them, and zipped them all up in a python folder.Then i created a new layer in AWS, uploaded the zip, applied the layer to my lambda function, but i still get this error:

  "errorMessage": "Missing optional dependency 'openpyxl'.  Use pip or conda to install openpyxl.",

I got the same error earlier before uploading the layer, but then i was missing pandas. This got resolved with uploadind the layer, but then i got the error above. I am not sure where i am doing something wrong here. Any help is appreciated!

Added a new layer using an already existing one with ARN found here: https://github.com/keithrozario/Klayers/blob/master/deployments/python3.8/arns/eu-central-1.csv

That solved my problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM