Bookworm 6.12.y for the uConsole and DevTerm

Your distribution appears to have an issue with at least its provided software package python3-numpy.

In a thread regarding the HackerGadgets AIO board, the user @jwhsu asked for help regarding a typical Python “module not found” error despite installing the given module from apt(1), as python3-numpy. In their elaboration, they attached the output of $ dpkg -L python3-numpy, which showed that numpy had been installed at /usr/lib/python3/dist-packages, a location in which the system’s Python 3 installation hadn’t been configured to search when looking for modules.

For demonstration, the following shell one-liner will print a frowney if numpy is not importable from Python, otherwise a smiley.

printf 'import sys \ntry: import numpy \nexcept: print(" :-(",sys.path) \nelse: print(" :)")' | xargs -0 python3 -c

Reproduction of the issue entails checking the output of this one-liner before and after running # apt install python3-numpy. My idea to create a /usr/lib/python3.11/site-packages/00-custom-dist-packages to add the installation path to the searched directories seems to not have worked, but you can find our full troubleshooting in that thread and hopefully enough resources to fix it.