Installing Pygame under Windows system

Source: Internet
Author: User
Tags windows download

Pygame installation, I believe a lot of people are a bit distressed, first: Do not know where to look for download files. Second: which file to download. Third: How to install the correct file after downloading it? This essay is not only to help you quickly download Pygame, but also for the future to forget how to download the installer can have a memory to provide a note! (engineering students, poor writing, please understand more)

I will solve the Pygame download and installation process from the three questions mentioned above!

First: Where to find pygame download files? https://bitbucket.org/pygame/pygame/downloads/

Second: Which file should I download?

1. You should first clear your own operating system, such as Pygame download list provides macos,linux,windows download file, this article mainly explains Windows, anyway, will be installed in a system, the installation of other systems is just extrapolate! (We use the Windows system here)

2. Which file should you download?

First we identified is the Windows system, so we find a file with win, this time again we choose 32-bit system or 64-bit system, the vast majority of today's systems are 64-bit, if you do not know how many of the operating system, you can go to the system settings inside the search, Can not find the Download Driver Wizard http://www.drivergenius.com/. View your operating system's number of bits in the last column of hardware detection

Once you know that you are a 64-bit or 32-bit system, make sure you have your Python version, and you can enter idle under Search to see your Python version. Such as:

My Python version is currently in the 3.5-64-bit version. So we need to select the CP with a 35 file in the Pygame, such as:

The number after CP corresponds to your Python version, if it's cp27, This file can only be adapted to the python2.7 version, High or low (low I have not tried, if your Python version is 3.x. But your pygame version is for python2.7, you can't install it! )

Third: How do you install it?

After the download is complete, open cmd

You can know, at this time the system positioning in C:\user\ easy if your download file is not in the current location, then you need to locate the location of your files, if your files in D:\python can be used to locate the CD command, such as CD D:\python (but this is too cumbersome). You can also directly find the location of the download file, cut the file to c:\user\ easy, so there is no need for positioning. Anyway, make sure you locate your files in cmd in the same location!

Then a line of code in CMD: python-m pip Install--user PYGAME-1.9.2-CP35-CP35M-WIN_AMD64.WHL (behind the user is the file name I downloaded!) You can refer to your own file name to modify the user's file name! )

Wait for the system to complete, Pygame installed successfully!

Installing Pygame under Windows system

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.