django找不到新的sqlite版本? (需要SQLite 3.8.3或更高版本(发现3.7.17)) [英] django can't find new sqlite version? (SQLite 3.8.3 or later is required (found 3.7.17))

查看:1001
本文介绍了django找不到新的sqlite版本? (需要SQLite 3.8.3或更高版本(发现3.7.17))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将django项目克隆到Centos 7 vps,并且现在尝试运行它,但是在尝试迁移时遇到此错误: p>

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 migrate
django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17).

当我检查sqlite的版本时,它是3.7.17,所以我从上下载了最新版本sqlite网站并将其替换为旧版本,现在当我对其进行版本控制时,它会给出:

When I checked the version for sqlite, it was 3.7.17, so I downloaded the newest version from sqlite website and replaced it with the old one, and now when I version it, it gives:

$ sqlite3 --version
3.27.2 2019-02-25 16:06:06 bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7

我尝试时仍然迁移项目时,我得到与以前完全相同的消息,这意味着找不到较新的版本。我是Linux新手,不胜感激。

Still when I try to migrate the project, I get the exact same message as before which means the newer version is not found. I'm new to linux and would appreciate any help.

推荐答案

要检查正在使用哪个版本的SQLite Python:

To check which version of SQLite Python is using:

$ python
Python 3.7.3 (default, Apr 12 2019, 16:23:13) 
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.27.2'

对我来说,新版本的sqlite3已发布/ usr / local / bin,所以我不得不重新编译Python,告诉它在那里:

For me the new version of sqlite3 is in /usr/local/bin so I had to recompile Python, telling it to look there:

sudo LD_RUN_PATH=/usr/local/lib ./configure --enable-optimizations
sudo LD_RUN_PATH=/usr/local/lib make altinstall

我希望能帮上忙。

这篇关于django找不到新的sqlite版本? (需要SQLite 3.8.3或更高版本(发现3.7.17))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆