I tried to run a python script I did not created that uses libraries I got with it (as .so files).
Every time I try to run it I get the same problem:
ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory
The documentations file attached to the script claims that if I get this problem I need the libpython3.8 package.
I work on raspberry pi 4 with the newest OS (64-bit, Bookworm).
I tried to find ways to install "libpython3.8" but I couldn't understand what to do. I ran it both on python 3.11 which is the one I had pre-installed, and also on python 3.8 which the documentation said was required. Both produced the same problem. I also tried running the script on an older OS (32-bit, Bullseye).
I couldn't find any file named libpython3.8-something, as was suggested in other answers to other questions...
-
2Does this answer your question? ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directoryBijay Regmi– Bijay Regmi2023年12月31日 09:06:32 +00:00Commented Dec 31, 2023 at 9:06
-
Did you try raspberryconnect.com/raspbian-packages/55-raspbian-python#l?tripleee– tripleee2023年12月31日 10:49:24 +00:00Commented Dec 31, 2023 at 10:49
-
You should update to Bookworm. It is including Python 3.11user4136999– user41369992023年12月31日 13:56:38 +00:00Commented Dec 31, 2023 at 13:56