pygame 教程翻译---- Install
Pygame安装
Pygame需要Python;如果你还没有,你可以从python.org下载。使用python 3.7.7或更高版本,因为它对新手更友好,而且运行速度更快。
安装pygame的最好方法是使用pip工具(python用它来安装包)。注意,这是python在最近的版本中附带的。我们使用——user标志告诉它安装到主目录,而不是全局目录。
python3 -m pip install -U pygame --user
看看它是否有效,运行其中一个包含的例子:
python3 -m pygame.examples.aliens