On a Pi5 running Bookworm (64-bit) I did this to install pyfluidsynth python library into a "virtual environment" Then we can import it like this: Does that work for you?
Code:
mkdir myenvcd myenvpython -m venv envsource env/bin/activatepip install pyfluidsynth
Code:
pythonPython 3.11.2 (main, Nov 30 2024, 21:22:50) [GCC 12.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import fluidsynth>>>
Statistics: Posted by neilgl — Sun Jan 26, 2025 9:03 pm