When creating an HTML version of the game from pyxapp, the Python packages (e.g. numpy) are not included.
You have to open the HTML and manually modify the launchPyxel to include packages.
It would be nice if the used packages can be specified during the conversion. For example, using an additional flag in the CLI:
pyxel app2html my_game.pyxapp --packages "numpy"