I would like to play selected audio files through the built-in audio port on a Raspberry 3 that is running Raspbian Stretch Lite, from a python program. Unfortunately, none of the libraries or external applications that I have tried for this purpose work.
sudo pip install pygame
results in
Unable to run "sdl-config". Please make sure a development version of SDL is installed.
and
pip install sdl
fails with
Could not find a version that satisfies the requirement sdl (from versions: ) No matching distribution found for sdl
mplayer won’t install.
mpg321 comes closest, installing but then failing when used, with ALSA lib errors, and you can’t install a new version of alas-utils because
Could not find a version that satisfies the requirement alsa-utils (from versions: ) No matching distribution found for alsa-utils
What do people do to play music on this OS?