【发布时间】:2017-11-04 00:26:25
【问题描述】:
我正在尝试将 asyncpg 与 AWS Lambda 一起使用,并在尝试 import asyncpg 时出现下一个错误
Unable to import module 'handler': No module named asyncpg.protocol.protocol'
我导入 python 依赖项,如this 回答有和没有虚拟环境。
更新。发现 this repo 和自定义编译的 psycopg2 与 AWS Lambda 有什么关系,但对于 asyncpg 没有找到这样的替代方案或关于编译 Lambda 友好的 asyncpg 包的说明。
【问题讨论】:
标签: python amazon-web-services aws-lambda asyncpg