Ubuntu 安装 pygame python3.5 #如果是python 3.X

#如果是python 3.X


#install dependencies
sudo apt
-get install mercurial python3-dev python3-numpy ffmpeg \
    libsdl
-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \
    libsdl1.
2-dev  libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev

# Grab source
hg clone https:
//bitbucket.org/pygame/pygame

# Finally build and install
cd pygame
python3 setup.py build
sudo python3 setup.py install

猜你喜欢

转载自blog.csdn.net/u013934107/article/details/80622319