1,环境安装
使用python3环境 进行安装:
ubuntu-PC:~$ sudo apt-get install python3-dev mercurial
ubuntu-PC:~$ sudo apt-get install libsdl-image1.2-dev libsdl2-dev libsdl-ttf2.0-dev
计算库:
ubuntu-PC:~$ sudo apt-get install python-numpy
依赖库安装:
sudo apt-get install libsdl-mixer1.2-dev libportmidi-dev libswscale-dev libsmpeg-dev libavformat-dev libavcodec-dev
安装pygame
pip3 install --user hg+http://bitbuket.org/pygame/pygame