Pygame installation of python3.4 __python

Source: Internet
Author: User

After you have identified your Python version, you can proceed to the following steps:

1. Enter the official website http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Download the corresponding version of the Pygame, pay attention to distinguish between 32 bits and 64 bits.

Here wheel is a compression format that is easy to install in Python.












2. Install pip into cmd mode

Win+r (or enter CMD in the Start menu) into cmd mode via shortcut key


The default is C disk, but you need to switch to a specific directory when you install




















Through the CD on the switch passed, and then pip install Whell, will prompt the PIP version is too low, need upgrade, then update




Update the input pip install--upgrade Pip, as shown in the update.










3. Install Wheel in cmd

or in the script directory, enter the PIP install wheel







4. Confirm whether the installation is in place

Enter PIP list

Show Pip (9.0.1)

Setuptools (12.0.5)

Wheel (0.29.0)

The instructions are all installed.

5. Install Pygame

Place the downloaded Pygame file in the script folder

In the cmd window, enter the PIP PYGAME-1.9.3-CP34M-WIN32.WHL (different version, only need to change the name of the file)





6. Check if the installation is in place

Enter the import Pygame and pygame.ver two statements in the Python idle to know the result


That's all, thanks ~

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.