码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-03-07 18:37:47      阅读:214      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!