Python PCV库中运行时出现ModuleNotFoundError: No module named ‘pysqlite2‘

解决思路:

from pysqlite2 import dbapi2 as sqlite

改为

from sqlite3 import dbapi2 as sqlite

前提是你要安装sqlite3的库

参考链接:

python - ImportError: No Module Named 'pysqlite2' - Stack Overflow

你可能感兴趣的:(数据库,sqlite)