Python Basics (iii)----PYGAME installation steps

Source: Internet
Author: User
Tags wrapper

http://blog.csdn.net/qq_33166080/article/details/68928563

If you already have some programming experience, the quickest way to learn a new language is to take a medium-sized project, get to know the project again, read the grammar of the new language again, aha, personal opinion.

Today to formally configure the Python development game Coorg Tools PyGame

introduction of Pygame

                ①  Pygame is a set of Python program modules developed for the development of game software based on the SDL library. Allows you to create feature-rich games and multimedia programs in a Python program, Pygame is a highly portable module that can support multiple operating systems,


②pygame is the Python wrapper (wrapper) for the SDL library. SDL is a cross-platform library that supports access to computer multimedia hardware (sound, video, input, etc.). SDL is very powerful, but the drawback is that it is based on C language, and C language is difficult to understand, so we use PyGame.

              Come go Start our installation process
              
              (1) Prepare condition
                      
① Configure the python you are using in the environment variable ( this is the point, or you can't play it later)

I am the default, the path is C:\Users\haha\AppData\Local\Programs\Python\Python36 put it in the environment variable

Note: If you don't know anything about environment variables, Baidu Search, a lot of



② installing PIP

1 "Pip Introduction: pip is a Python package management tool, mainly for PyPI the installation of software packages, can replace the easy_install tool.

2 "Installation process

Note: To configure the environment variable of PIP before installation, it is a scripts directory under which you install the Python root directory, which is the PIP program

C:\Users\haha\AppData\Local\Programs\Python\Python36\Scripts

(2) Start installation

                    ① < Span style= "font-size:14px" > started to download Pygame on the official website ( Focus: You will be based on your own currently installed version of Python and then the official website to download the corresponding pygame, can not download and your current version of Python does not correspond to the official website has been prepared for you ) official website address below

http://www.pygame.org/download.shtml

② If your current Python version is after 3.4, 3.5,3.6 then please go to the following website to download

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame Https://pypi.python.org/pypi/Pygame

③ Start Installation: If the download is an. exe file, it is convenient to click Install directly, but if the. whl file, then you need to start a DOS installation

Put your own downloaded. whl file in a full English drive letter, found in the PYGAME-1.9.2B8-CP36-CP36M-WIN_AMD64.WHL

In the DOS command window, switch the corresponding path to the path of the file, and then go to the following statement

python-m pip install--userPYGAME-1.9.2B8-CP36-CP36M-WIN_AMD64.WHL

④ The sign of success,

Python Basics (iii)----PYGAME installation steps

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.