If you have setuptools installed, you can install or upgrade to the latest version of pyglet using easy_install:
easy_install -U pyglet
On Mac OS X and Linux you may need to run the above as a priveleged user; for example:
sudo easy_install -U pyglet