pandas AWS Lambda [英] Pandas & AWS Lambda
问题描述
是否有人拥有与AWS Lambda兼容的熊猫的完整编译版本?
Does anyone have a fully compiled version of pandas that is compatible with AWS Lambda?
经过几个小时的搜索,我似乎找不到想要的东西,并且关于此主题的文档不存在.
After searching around for a few hours, I cannot seem to find what I'm looking for and the documentation on this subject is non-existent.
我需要访问lambda函数中的程序包,但是我无法使该程序包正确编译以供在Lambda函数中使用.
I need access to the package in a lambda function however I have been unsuccessful at getting the package to compile properly for usage in a Lambda function.
有人可以代替可编译的步骤来创建二进制文件吗?
In lieu of the compilation can anyone provide reproducible steps to create the binaries?
不幸的是,我无法成功地复制任何有关该主题的指南,因为它们大多将熊猫和我不需要的东西结合在一起,增加了额外的负担.
Unfortunately I have not been able to successfully reproduce any of the guides on the subjects as they mostly combine pandas with scipy which I don't need and adds an extra layer of burden.
推荐答案
经过一番摸索和大量的谷歌搜索,我能够使所有工作正常,并建立了一个将来可以克隆的存储库.
After some tinkering around and lot's of googling I was able to make everything work and setup a repo that can just be cloned in the future.
要点:
- 所有静态软件包都必须在ec2亚马逊Linux实例上编译
- Python代码需要在执行之前加载lib/文件夹中的库.
Github回购: https://github.com/moesy/AWS-Lambda-ML-Microservice-Skeleton
Github repo: https://github.com/moesy/AWS-Lambda-ML-Microservice-Skeleton
这篇关于 pandas AWS Lambda的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!