3

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.

Sнаđошƒаӽ
  • 16,753
  • 12
  • 73
  • 90
  • 3
    sqlite3 is part of the Python *installation*, not an external library, so it's not upgradeable using pip. I'm not sure whether sqlite3 is upgradeable without upgrading to a new version of Python. Doing a quick google search suggests that some people have tried replacing dll files. That is Windows specific, and it seems very hacky to me. – Alasdair Jan 25 '16 at 11:57

1 Answers1

5

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.

Sнаđошƒаӽ
  • 16,753
  • 12
  • 73
  • 90