sqlite3 error on AWS lambda with Python 3

后端 未结 7 1129
终归单人心
终归单人心 2021-02-01 05:07

I am building a python 3.6 AWS Lambda deploy package and was facing an issue with SQLite.

In my code I am using nltk which has a

7条回答
  •  滥情空心
    2021-02-01 05:51

    As apathyman describes, there isn't a direct solution to this until Amazon bundle the C libraries required for sqlite3 into the AMI's used to run Python on lambda.

    One workaround though, is using a pure Python implementation of SQLite, such as PyDbLite. This side-steps the problem, as a library like this doesn't require any particular C libraries to be installed, just Python.

    Unfortunately, this doesn't help you if you are using a library which in turn uses the sqlite3 module.

提交回复
热议问题