解决sqlite3.DatabaseError: file is encrypted or ...
发布时间:2020-12-12 20:02:12 所属栏目:百科 来源:网络整理
导读:笔者在使用python处理一sqlite3文件时,出现以下错误: sqlite3.DatabaseError: file is encrypted or is not a database 使用的sqlite文件路径是没有问题的,在: http://stackoverflow.com/questions/11456623/using-an-sqlite3-database-with-wal-enabled
笔者在使用python处理一sqlite3文件时,出现以下错误: sqlite3.DatabaseError: file is encrypted or is not a database 使用的sqlite文件路径是没有问题的,在: http://stackoverflow.com/questions/11456623/using-an-sqlite3-database-with-wal-enabled-python找到了答案,原因是这个sqlite开启了WAL。解决方法是: I just downloaded the latest version of sqlite from http://www.sqlite.org/download.html and overwrote the old .dll in my python27/DLL directory.下载最新版本的sqlitedll文件覆盖python自带的dll文件。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |