由于本机上存在2个版本的python(CentOS 自带了Python2.6,但是用的Django2.7要求Python版本必须是2.7,故重新安装了Python2.7。同时为了保证其他依赖python2.6的系统软件能正常使用,所以没有卸载掉之前的Python2.6)。
于是,今天在更新了数据库配置之后执行: python manager.py runserver时,报错,如下图所示:
需要安装sqlite-devel之后,重新编译安装Python即可。
yum install sqlite-devel
重新编译安装Python:
./configure
make
make install
参考: http://blog.csdn.net/chenggong2dm/article/details/24362823