可以使用以后版本的sqlite3和python吗? [英] Can I use a later of version of sqlite3 with python?

查看:131
本文介绍了可以使用以后版本的sqlite3和python吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用python 3.5.1,它附带了一个3.8.11的sqlite版本。我想知道我是否可以使用另一个版本的sqlite(比如最新的一个到目前为止)与我目前的python。如果答案是肯定的,那我该如何做呢?从这里学习我尝试过这个,但没有做任何事情:

  pip install sqlite3 --upgrade 

我正在使用sqlite3在我的django项目中需要全文搜索。所以我正在阅读这个,在某个时候我被诱惑要使用sqlite3的最新版本,因为它表示对以前的版本有一些改进,对我来说似乎很有趣。无论如何,是否可以使用更新版本的sqlite3而不升级python?






注意:这个问题几乎完全被重写,所以很多评论似乎都是无关紧要的。感谢 Alasdair ,我知道以前的问题没有任何意义,所以我重写了。

解决方案

经过一番搜索,我找到了一种方法。您需要从 sqlite3.dll (预编译二进制文件) nofollow的>此处。然后在python安装目录的 DLLs 文件夹中复制该文件。您可能需要备份旧的 sqlite3.dll 文件,以防您决定还原。


I am using python 3.5.1 which comes with an sqlite version of 3.8.11. I wonder if I could use another version of sqlite (say the latest one as of now) with my current python. If the answer is yes then how do I do that? Learning from here I tried this but it does not do anything:

pip install sqlite3 --upgrade

I am using sqlite3 in my django project that needs full-text search. So I was reading this, and at a point I was tempted to use the latest version of sqlite3 as it said it had some improvements over the previous versions, which seemed interesting to me. Anyway, is it possible to use later version of sqlite3 without upgrading python?


Note: the question is almost completely re-written, so many comments may seem irrelevant. Thanks to Alasdair, I came to know that the previous question didn't make any sense, hence I re-wrote it.

解决方案

After some googling I found a way to do this. You need to download the sqlite3.dll (pre-compiled binary) file from here. Then copy over this file in the DLLs folder in the python installation directory. You may want to make a backup of your old sqlite3.dll file just in case you may decide to revert.

这篇关于可以使用以后版本的sqlite3和python吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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