新裝python環境啓動django程序報錯

個人獨立博客 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

完美解決問題!!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章