How to install pygame for Python 3

If youre using fig 2.x and Python 2, then you should have no issue installing python-pygame: sudo apt-get install python-pygame

However, if you are using fig 3.x and Python 3, then installing pygame is a little more involved.

The following instructions were originally for Debian Stretch and Devuan Ascii, and as of this writing also work in Fig OS (based on Refracta 8.)

As root, add this line  to /etc/apt/sources.list

deb-src experimental main

$ python3

>>> import pygame # should work, even in Python 3.5

< Using-fig

< Learn-about-the-fig-programming-language

<< Fig OS Manual