Did You Know: 404 Not Found
If you get errors similar to 404 Not Found when you try to install the tools for
building Python modules, first check and make sure you are connected to the Internet.
To do this, open up the Midori web browser and see if you can reach any of your
favorite websites. If you can connect to the Internet, next try repairing your system by
typing the command sudo apt-get update and press Enter. Now try typing
sudo apt-get install python3-dev python3-numpy and pressing
Enter again.
Obtaining the PyGame Source Code
To proceed, you need to obtain the PyGame source code and a software package that will allow you
to do so. At the command line, type sudo apt-get install mercurial, as shown in
Listing 19.4, and press Enter.
LISTING 19.4 Obtaining the PyGame Source Code
Click here to view code image
pi@raspberrypi ~ $ sudo apt-get install mercurial
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
mercurial-common
Suggested packages:
qct vim emacs kdiff3 kdiff3-qt kompare meld xxdiff tkcvs mgdiff
python-mysqldb python-pygments python-openssl
The following NEW packages will be installed:
mercurial mercurial-common
0 upgraded, 2 newly installed, 0 to remove and 191 not upgraded.
Need to get 2,404 kB of archives.
After this operation, 8,022 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main mercurial-
common all 2.2.2-3 [2,320 kB]
...
Creating config file /etc/mercurial/hgrc.d/hgext.rc with new version
pi@raspberrypi ~ $
pi@raspberrypi ~ $ hg clone https://bitbucket.org/pygame/pygame
destination directory: pygame
requesting all changes
...
664 files updated, 0 files merged, 0 files removed, 0 files unresolved
pi@raspberrypi ~ $
pi@raspberrypi ~ $ cd pygame
pi@raspberrypi ~/pygame $ pwd
/home/pi/pygame
pi@raspberrypi ~/pygame $
Next, you use the hg command from the newly install mercurial program by typing hg clone
https://bitbucket.org/pygame/pygame and pressing Enter. Finally, you need to change