- Category: Programming
- Published on Wednesday, 29 August 2012 04:29
- Written by Oliver Bright
- Hits: 1434
To use the books "Invent Your Own Computer Games with Python" & "Making Games with Python & Pygame" by Albert Sweigart you will need Python 3 with the pygame libraries installed.
First open the Terminal application and enter:
sudo apt-get install idle3
After you enter your password and confirm, this will download and install the latest Python 3 and the IDLE Integrated Development Environment packages.
Now to set up pygame type:
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 ffmpeg \
libswscale-dev libavformat-dev libavcodec-dev mercurial hg clone https://bitbucket.org/pygame/pygame cd pygame python3 setup.py build sudo python3 setup.py install
Now everything should be in order. Open the application IDLE (using Python-3.2) and in the shell enter:
If you have a working system it should just go right back to the >>> prompt.