首页 > 编程语言 > 详细

How to install Pygame for Python 3.4 on Ubuntu 14.04(转)

时间:2015-03-07 18:35:19      阅读:434      评论:0      收藏:0      [点我收藏+]

 

First run this to install dependencies:

sudo apt-get install mercurial python3-dev python3-numpy 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 libfreetype6-dev

Then download the source for pygame:

First install mercurial if you dont have it installed:

sudo apt-get install mercurial

then:

hg clone https://bitbucket.org/pygame/pygame

Now build and install pygame for Python 3.4:

cd pygame
python3 setup.py build
sudo python3 setup.py install

Additional comments:

The only version of Python3 I had installed was 3.4 if you have other versions
you might have to be more specific.

How to install Pygame for Python 3.4 on Ubuntu 14.04(转)

原文:http://www.cnblogs.com/brucee/p/4320729.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!