The method of importing pygame Module into python
Most people do not understand the knowledge points of this article "python import pygame module method", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "python import pygame module method" article.
The operating environment of this tutorial: windows7 system, Python 3.9.1 Dell G3 computer.
1. Download the Pygame package
Note: according to the Python version and the number of digits of the Windows system, select the corresponding version of the Pygame package.
2. Download the wheel installation package required for Pygame
Https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
Note that the python version corresponds to this.
3. Move the downloaded .whl file to the python35/Scripts directory.
Move the downloaded .whl file to the python35/Scripts directory (in the case of a tensorflow environment, under the scripts directory under anaconda)
Cmd enters this directory (usually cd).
Install and enter the command: (change the name of the download later)
Pip3 install pygame-1.9.2a0-cp35-none-win32.whl above is about the content of this article on "the method of python importing pygame module". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more related knowledge, please pay attention to the industry information channel.