Python 获得'GLIBC_2.18';aws api网关中未找到错误

Python 获得'GLIBC_2.18';aws api网关中未找到错误,python,amazon-web-services,chalice,web3py,Python,Amazon Web Services,Chalice,Web3py,我正在aws chalice中编写Api。 我的代码在本地运行良好 但我得到了以下回应: {“消息”:“内部服务器错误”} My requirements.txt文件包含: web3==5.12.1 pycryptodome==3.9.8 在检查aws api网关时。发现以下错误: 错误消息: {"errorMessage": "Unable to import module 'app': /lib64/libc.so.6: version `GLIBC_2.18

我正在aws chalice中编写Api。 我的代码在本地运行良好

但我得到了以下回应:
{“消息”:“内部服务器错误”}
My requirements.txt文件包含:

web3==5.12.1
pycryptodome==3.9.8
在检查aws api网关时。发现以下错误:

错误消息:

{"errorMessage": "Unable to import module 'app': /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /var/task/rusty_rlp.cpython-37m-x86_64-linux-gnu.so)", "errorType": "Runtime.ImportModuleError"}
Fri Sep 18 13:47:33 UTC 2020 : Lambda execution failed with status 200 due to customer function error: Unable to import module 'app': /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /var/task/rusty_rlp.cpython-37m-x86_64-linux-gnu.so). Lambda request id: b8a849f9-2982-49a6-a010-f6a2dbe1655e

更改mu需求文件解决了此问题:

eth-account==0.5.2
rlp==1.2.0
web3==5.10.0