升级pip python -m pip install -U pip 通过pip安装pygame python -m pip install pygame 测试 import pygame 不出错误,就证明OK了