$ sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
O ordinati leggermente:
sudo apt-get install \
python-dev \
python-numpy \
subversion \
ffmpeg \
libsdl1.2-dev \
libsdl-image1.2-dev \
libsdl-mixer1.2-dev \
libsdl-ttf2.0-dev \
libavcodec-dev \
libavformat-dev \
libportmidi-dev \
libsmpeg-dev \
libswscale-dev \
Ecco uno degli strumenti più utili sui dsitro basati su debian:
apt-get build-dep python-pygame
Installa tutte le dipendenze richieste per compilare pygame :)
Su Fedora:
yum-builddep package_name