1. Go to the official website to download PyGame
Note: To download the corresponding version of the package
Official website address:/
where if python is the following version:
python 3.4: /~gohlke/pythonlibs/#pygame
python 3.5,3.6 :/pypi/Pygame
(cp36 means python 3.6)
2. .exe file direct installation
The .whl file starts the doc command installation:
Open the doc interface in the location of the file: (win10 directly in the current folder blank hold shift, right click to open powershell window)
Enter the following command to install:pip install pygame-1.9.
3. Test installation results
4. Issues
Two issues arose during the installation:
1)You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Reason: this problem is mainly because the version is not updated, just update it (small beep)
Solution: Just update it by typing python -m pip install --upgrade pip command
2)pygame-1.9.3-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.
Reason: Version mismatch
Solution:
Check if you have downloaded the correct counterpart: python version, 32 or 64 bit
The problem I'm having is that the computer is 64-bit and thought python was 64-bit as well, but the problem occurs when installing the 64-bit pygame, just make sure of the specific version number of python, for example, mine is python 3.5.3 then the question is left as to whether it's 64-bit or 32-bit, try them both!!!!
summarize
The above is a small introduction to the download and installation process of PyGame under python and encountered problems, I hope to help you, if you have any questions welcome to leave me a message, I will reply to you in a timely manner!