Update: Pygame >=1.9.2 should be installable via pip
...
...for the major platforms (Windows included).
According to the Getting Started guide, the steps for installation should be as simple as what the OP had attempted (way back in 2016):
pip install --user pygame
After installation, you can check if it was installed correctly by running one of the examples:
python -m pygame.examples.aliens
Why didn't this work before?
I was kinda curious as to why the OP was unable to install pygame
back when this question was asked, so I looked into the history of pygame
releases on pypi and noticed that the latest version available as of May 2016 would have been version 1.8.1
, which was released in 2008 (yikes).
Not only that, but it didn't have any installable wheels, which explains why the OP contains that error from pip about being unable to find any versions to download.
Previous Answer (Still kinda relevant)
pygame
is not distributed via pip
. See this link which provides windows binaries ready for installation (but only for pygame versions less than 2.0.0)
...Or follow the following instructions for manual installation of pygame (version 1.9.4 and higher)
- Install python
- Make sure you have python on your PATH
- Download the appropriate wheel from this link
- Install pip using this tutorial
- Finally, use these commands to install pygame wheel with pip