The installation of Pygame corresponds to the installation of Python, Pygame's windows 32-bit corresponds to Python's 32-bit installation, and theWindows 64-bit corresponds to Python's 64-bit installation.
Let's take a look at Windows 32-bit:
Pygame Installation URL: http://www.pygame.org/download.shtml
Download the packages we need:
I chose: Pygame-1.9.2a0.win32-py3.2.msi 6.4MB
Here is the explanation:
The version of Pygame corresponds to: 1.9.2
The Python version corresponds to the following: 3.2.*
So next we need to go to Python's website to download the corresponding version of the Python package
We went to: http://www.python.org/download/releases/3.2.5/
Download: Windows x86 MSI Installer (3.2.5) (SIG) ( Note: The above red logo is wrong, it should be the above __ ^_^, you can also directly download through the connection I give )
For Python installation, you can refer to a good article:
Installation of Python development _python
The following is a demonstration of the Python installation process:
Remember, install Python first, or you will get an error when installing Pygame ....
Double-click the one you downloaded:
Pygame-1.9.2a0.win32-py3.2.msi
The following interface appears:
This will automatically detect the Python version on your machine ....
Here, Pygame is installed to complete, but we can not guarantee the installation success!!!
You can find the installed Pygame module under your Python installation directory:
My is in the catalogue: E:\Python32\Lib\site-packages
We need to verify that:
Open Python's Idel (Python gui) for validation:How python development _idel (Python GUI) is used
Here, we are the successful installation Pygame, then we can use the Pygame module.
Next is the Windows 64-bit installation process:
in the online search for many methods are not installed Pygame, always prompt some plug-in not found. Finally found how to install the Pygame, now my experience to share to everyone.
1. First your computer to have PIP plugin, detailed view PIP installation detailed
2. CMD Execute Command ~ pip Install Wheel
CMD ~ Pip list, appears wheel, proves wheel plugin installed successfully!
3. Then open this URL http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
Find Pygame your corresponding version and download to C drive. 64 is 64 bits.
4. Execute cmd command under C drive ~ Pip Install PYGAME-1.9.2A0-CP27-NONE-WIN_AMD64.WHL (you download the corresponding name of Pygame)
5. Test, Installation Success ~
How to install Pygame on a Windows system