Pygame installation method in Python

Source: Internet
Author: User
Tags windows x86
This example describes the Pygame installation method in Python. Share to everyone for your reference, as follows:

Here is the main description of how we install Pygame

Maybe a lot of people like me, found that pygame is a good thing, but just do not know how to use, or how to install, in the Baidu/google above search, found that there is not an article

A detailed article describing the installation process for Pygame. If you are one of them, then this tutorial may help you.

Of course, when learning pygame, you need to have some basic knowledge of Python. If you already have a certain Python base, then the next content might be interesting for you ....

Take a look at the installation of Pygame!!!

We first have to go to: 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)

For Python installation, you can refer to a good article:

Python installation with old Ziko 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 on what you downloaded (use Pygame-1.9.2a0.win32-py3.2.msi here)

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

For reference: Python IDLE Installation and use tutorial (debug, download)

Here, we are the successful installation Pygame, then we can use the Pygame module.

I hope this article is helpful for Python program design.

  • 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.