我正在尝试使用 Google App Engine 部署 BootlePy + PeeWee 网络应用程序。
我将 PeeWee 与 SQLite 一起使用。
这是PeeWee的源代码:
try:
import sqlite3
except ImportError:
sqlite3 = None
以下是我在 Google App Engine 开发控制台中遇到的错误:
ImportError: No module named _sqlite3
为什么导入失败?
最佳答案
Google App Engine 不允许 sqlite,因此其中没有该模块。这里有更多信息:Using sqlite3 within Google App Engine?
关于python - Google App Engine 上的 PeeWee + SQLite3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11904362/