Python Forum

Full Version: Pygame 2 on Raspberry Buster
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to install Pygame 2 on a Raspberry Buster. I am using OS version 5.10.11.

It seems that I need to update SDL to be compatible with Pygame 2.

Does anyone know the process for updating the Raspberry to make Pygame 2 work?

Many thanks in advance
Thanks ! I will test it
Hi,

Finally I have installed SDL2 with :
sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0 libsdl2-ttf-2.0-0
then Pygame using :
python3 -m pip install pygame
which gave me a Pygame 2.1.5 version

It runs, but the result is terribly terribly slow. I try some optimisation on my code which do not change anything.

I don't know if it is due to Pygame 2 or to SDL2, but one of these is not designed to be used on a Raspberry 3.

Finally, I have been getting back to Pygame 1.9.6 which run at correct speed.

Thanks for your help !