To install pygame for python3, do the following:
1. Open up the terminal and type the following code:
$ sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev
2. Then once all libraries are downloaded and installed:
$ svn co svn://seul.org/svn/pygame/trunk pygame
$ cd pygame
$ python3 setup.py build
$ sudo python3 setup.py install
Good to go. You can now run pygame with python3.
To test, open the terminal and try for yourself
$ python3
Python 3.2.3 (default, Jun 18 2015, 21:46:58)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>>
No comments:
Post a Comment