在AWS Lambda C ++运行时中嵌入Python

时间:2019-02-12 13:24:26

标签: python c++ amazon-web-services aws-lambda pybind11

我正在尝试使用Pybind11将Python嵌入C ++中。但是我的C ++程序正在使用AWS Lambda C ++运行时。

一切都完美编译。但是,当我上载AWS Lambda程序包并调用Lambda函数时,会出现此错误:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

为什么?

0 个答案:

没有答案