怎么安装python的pygame库文件? 点击“开始菜单”,搜索程序“cmd”,鼠标右键,选择“以管理员身份运行”。 输入代码“pip install pygame”,选择“剪切”,按下回车即可下载pygame。