django can't find new sqlite version? (SQLite 3.8.3 or later is required (found 3.7.17))

后端 未结 9 1493
既然无缘
既然无缘 2020-12-08 10:18

I\'ve cloned a django project to a Centos 7 vps and I\'m trying to run it now, but I get this error when trying to migrate:

$ python manage.py m         


        
9条回答
  •  心在旅途
    2020-12-08 10:58

    As this was about Centos7, you can use the Fedora package to upgrade the Centos sqlite package:

    wget https://kojipkgs.fedoraproject.org//packages/sqlite/3.8.11/1.fc21/x86_64/sqlite-3.8.11-1.fc21.x86_64.rpm
    
    sudo yum install sqlite-3.8.11-1.fc21.x86_64.rpm
    

    (from: https://www.reddit.com/r/linuxadmin/comments/c9hy5w/trying_to_upgrade_sqlite_3717_to_version_38_on/ezrtbkm/?utm_source=reddit&utm_medium=web2x&context=3)

    This seems to work, although I'm never sure if doing this is really an ideal solution to a problem or not. I guess if you're not actually using SQLite, then this at least passes the version check and so gets you working.

提交回复
热议问题