Python安装sqlite3 环境为Ubuntu16.04 Apache2.4 Python2.7.13 django 1.8 今天部署apache+django,经过各种折腾,好不容易配置完了,发现错误Apache的日志里有一项 ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3 于是打开Python 测试
import sqlite3db = r"test.db"drp_tb_sql = "drop table if exists staff"crt_tb_sql = """create table if not exists staff( id integer primary key autoincrement unique not null, name varchar(100), city varchar(100));"&q