python项目【武装飞船】- pygame环境安装

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

猜你喜欢

转载自blog.csdn.net/qq_15555275/article/details/107050315