Steps to install PyGame using pip
-
Install build dependencies (on linux):
sudo apt-get build-dep python-pygame -
Install mercurial to use
hg(on linux):sudo apt-get install mercurialOn Windows you can use the installer: Download
-
Use pip to install PyGame:
pip install hg+http://bitbucket.org/pygame/pygameIf the above gives
freetype-config: not founderror (on Linux), then trysudo apt-get install libfreetype6-devand then repeat 3.
Alternative way:
# Grab source
hg clone https://bitbucket.org/pygame/pygame
# Finally build and install
cd pygame
python setup.py build
sudo python setup.py install