![](/images/menggu/123.jpg)
CompileUbuntu - pygame wiki
Here are the dependencies for pygame 2 (using SDL2) and using Python 3. These instructions are tested to work on Ubuntu 18.04 and higher. sudo apt - get update sudo apt - get install libsdl2 - dev libsdl2 - image - dev libsdl2 - mixer - dev libsdl2 - ttf - dev libfreetype6 - dev libportmidi - dev libjpeg - dev python3 - setuptools python3 - dev ...