pygame installation: sdl-config command not found

I searched a long time, cause I needed the package for Python Crash Course by Eric Matthes, but couldn’t find the answer that would help running
pip install pygame
without errors and finally found 1 line solution that worked for me

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 libfreetype6-dev

Leave a Comment