Can I use a later of version of sqlite3 with pytho

2019-02-27 10:29发布

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.

1条回答
The star\"
2楼-- · 2019-02-27 11:23

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.

查看更多
登录 后发表回答