Sample Header Ad - 728x90

how to install missing python modules offline without managers

0 votes
0 answers
153 views
I have a device running an embedded OS (Custom Linux buildroot). It is offline and has **no** package manager (apt, yum, et al.) and Python has several missing modules, one of which is key for our application to run. Python also does not have pip either (which makes a kind of sense, it being an offline system). **I cannot** rebuild the OS since it is currently running and mission-critical systems have to stay up. All I need to do is add the Python sqlite3 module to this thing and *poof*, application is in business. On my development box, I have tried doing a
-shell
pip freeze > reqs.txt
to see what modules I am using, but none of the Python default modules are listed, most notably sqlite3. Can I just copy the module directly from my Python modules folder to the device's Python modules folder and be done, or is this going to make a mess? Forgive the seemingly noob question, but I've never played with this kind of offline scenario when Python isn't fully realized on the machine., and given that I can't have the app throwing errors on the running box, I'm leery of just tinkering.
Asked by WhiteRau (255 rep)
Sep 20, 2023, 08:01 PM
Last activity: Sep 28, 2023, 03:34 PM