How to install Python and corresponding pygame and matplotlib under Windows system
Recently, I'm going to learn the programming language Python. Consistent with other languages, you need to install the compilation environment and some necessary tools at the beginning. Here are some of my experiences when I first installed the Python environment.
First, prepare the software resource 1 and download the Python file
Https://www.python.org/downloads/
Select the latest version suitable for Windows to download.
2. Download the pygame file suitable for Python version, version 3. 2 and before, at the following address
Http://www.pygame.org/download.shtml
B, the version after Python3.4, download http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame3 at the address below, download pip, which is a tool for installing and managing Python packages, and run the get-pip.py,get-pip.py download address directly under Python
Https://bootstrap.pypa.io/get-pip.py
Second, after downloading the resources, install the Python,Python first and run the installation package directly. After the installation is complete, install the pip tool. Shortcut key Win+R, in the run dialog box, type cmd, and then go to get-pip.py to save the path, execute the python get-pip.py instruction. twelve
After installing pip, you can run the pip list instruction to see if wheel has been installed. If not, run pip install wheel12 III. After installing pip, you can use the pip tool to install pygame in wheel compressed format. Under the cmd command: pip install pygame-1.9.2a0-cp35-none-win32.whl
You can open the python runtime interface and issue the import pygame instruction to verify that the installation is complete.
The version of the whl file suitable for win64+python3.6 is in the following connection
Http://down.51cto.com/data/2369613
Http://down.51cto.com/data/2370444