Issue
I am trying to use pygame with a Raspberry Pi, and no matter what installation I do, I always get this error:
user@raspberrypi:~ $ python3 -m pygame.examples.aliens
pygame 2.1.2 (SDL 2.0.9, Python 3.7.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
Sorry, extended image module required
I have tried python3 -m pip install -U pygame --user
, which is suggested by the pygame website, and when I call python3 -m pygame.examples.aliens
, the above error is produced. I have tried this both through JuiceSSH and on the Pi itself, to no avail.
Any help or suggestions would be greatly appreciated!
Solution
You have not mentioned the OS your RPi is running. Raspbian has pygame already installed on default if you are running raspbian have you tried an older version? If its another flavour OS try manually installing each dependancy (ARM) pygame needs and then install pygame. Also try installing an older pygame version "pip install pygame==VERSION"
Best regards.
Answered By - koenry Answer Checked By - Willingham (WPSolving Volunteer)