我正在尝试使用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'
为什么?