1.打开Windows PowerShell PS:需要打开管理员。
不会的小伙伴点击这个链接:https://blog.csdn.net/m0_71689546/article/details/125125042?utm_source=app&app_version=5.5.0&code=app_1562916241&uLinkId=usr1mkqgl919blen
2.在命令输入栏里面输入:pip install pygame
3.按下Enter键
4.等待再出现"PS:C:\WINDOWS\Systeme32>"时,表示 Pygame已经安装了。关闭Windows PowerShell。
5.打开Python IDLE,输入"import pygame",如果不提示错误,说明安装成功。



