How to install PyGame in the RaspberryPi
Hello everybody, I found out that a lot of people has trouble trying to install the PyGame because of the dependencies.
So here is a few commands to help you to do so.
$ sudo apt-get install mercurial
$ hg clone https://bitbucket.org/pygame/pygame
$ cd pygame
$ sudo apt-get install libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
$ sudo apt-get install libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev
$ sudo apt-get install python3-dev python3-numpy
$ python3 setup.py build
$ sudo python3 setup.py install
All this process should take a while:
RaspberryPi 1 B+ around 1 hour
RaspberryPi 2 B+ around 25 minutes
If you have any problem doing the process, feel free to contact me at twitter: @gabrielpires or e-mail eu at gabrielpires.com.br