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.