How to install Pygame on a Windows system

Source: Internet
Author: User
Tags windows x86

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.