Using stock Bookworm 64-bit on a Pi3+, I created a venv with system packages, then installed pygame OK. Then run python and import pygame.mixer - all OKMaybe it is different on yours?
Code:
pip install -U pygame==2.6.0 --user
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 pygame.mixerpygame 2.6.0 (SDL 2.28.4, Python 3.11.2)Hello from the pygame community. https://www.pygame.org/contribute.html>>>
Statistics: Posted by neilgl — Mon Mar 10, 2025 4:52 pm