How do I make python sqlite3 module accessible to TDF's Libreoffice?

I am troubleshooting an instance of Libreoffice that came from a (Linux) distribution’s repositories. Meanwhile, I also installed another instance using RPMs obtained from TDF’s download site. Now I have two versions – the system version and TDF’s version. When I run the system version, Macros and scripts successfully import sqlite3 module. TDF’s LibO throws an error instead: “No Module Named sqlite3” or something in like that. Sqlite3 also imports okay in the python interactive environment

I understand that TDF’s LibO uses its own copy of Python. What’s the best way to get TDF’s instance to import sqlite3?