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 mercurial
On Windows you can use the installer: Download
-
Use pip to install PyGame:
pip install hg+http://bitbucket.org/pygame/pygame
If the above gives
freetype-config: not found
error (on Linux), then trysudo apt-get install libfreetype6-dev
and 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