环境为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 测试下能否导入sqlite3模块 >…
linux 执行django(python manage.py runserver),报错No module named _sqlite3,需要安装sqlite-devel,再重新编译安装python. 1.安装sqlite-devel yum install sqlite-devel 2.重新安装python tar -zxf Python-2.7.3.tgz cd Python-2.7.3 ./configure make && make install 然后就可以了.…