Adding sqlite3 to Python 3.4.2 after original build

522 views
Skip to first unread message

quig...@gmail.com

unread,
Mar 11, 2016, 3:53:12 PM3/11/16
to python-sqlite
We have a RHEL 6 system with a production build of python 3 that's in need of sqlite3 but it appears it wasn't built with it (i.e, with sqlite-devel installed on the system).

Is there a simple way to install sqlite3 after the fact or do we need to rebuild Python 3?

Adrian Klaver

unread,
Mar 11, 2016, 6:47:51 PM3/11/16
to python...@googlegroups.com
On 03/11/2016 12:43 PM, quig...@gmail.com wrote:
> We have a RHEL 6 system with a production build of python 3 that's in
> need of sqlite3 but it appears it wasn't built with it (i.e, with
> sqlite-devel installed on the system).

So the system(RH) Python is version 2 and you built a Python3 install,
correct?

>
> Is there a simple way to install sqlite3 after the fact or do we need to
> rebuild Python 3?

I was going to say use pysqlite(https://github.com/ghaering/pysqlite)
but it does not build for Python3:

setup.py
if sys.version_info[0] > 2:
print("pysqlite is not supported on Python 3. When using Python 3,
use the sqlite3 module from the standard library.")

Looks like you will have to rebuild. There is a chance it will not
rebuild everything, but just the sqlite3 parts, if you redo the
./configure make make install in the same build directory as before.


>
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "python-sqlite" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to python-sqlit...@googlegroups.com
> <mailto:python-sqlit...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


--
Adrian Klaver
adrian...@aklaver.com
Reply all
Reply to author
Forward
0 new messages