码迷,mamicode.com
首页 > 编程语言 > 详细

新装python环境启动django程序报错

时间:2017-05-11 22:31:58      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:django   python   独立博客   error   

个人独立博客 http://www.xbman.cn/

出处:http://www.xbman.cn/article/1

django启动报错

django.core.exceptions.ImproperlyConfigured: Error loading either pysqlite2 or sqlite3 modules (tried in that order): No module named _sqlite3


解决方法

centos

yum install python-devel -yyum install sqlite-devel -y

然后重新编译安装python

cd Python-2.7.13./configure && make && make install

完美解决问题!!


本文出自 “晅哥linux” 博客,请务必保留此出处http://weihaoxuan.blog.51cto.com/8698172/1924720

新装python环境启动django程序报错

标签:django   python   独立博客   error   

原文地址:http://weihaoxuan.blog.51cto.com/8698172/1924720

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!