Linux安装Pygame

来源:互联网 发布:秋风印花分色软件 编辑:程序博客网 时间:2024/06/05 13:21

1.Install build dependencies (on linux):

sudo apt-get build-dep python-pygame

2.Install mercurial to use hg (on linux):

sudo apt-get install mercurial

3.Use pip to install PyGame:

pip install hg+http://bitbucket.org/pygame/pygame

If the above gives freetype-config: not found error (on Linux), then try

sudo apt-get install libfreetype6-dev and then repeat 3.