//python版本
>python --version
Python 3.6.5
//安装python路径
D:\Program Files\python3
//因为我下载的文件为.whl,将它复制到项目文件夹中。再打开一个命令窗口(cmd),切换
到该文件所在的文件夹,并使用pip来运行它:
>python -m pip install --user pygame-1.9.4-cp36-cp36m-win_amd64.whl
//如果出现以下提示
Installing collected packages: pygame
Successfully installed pygame-1.9.4
You are using pip version 9.0.3, however version 18.0 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
//则使用以下命令安装
>python -m pip install --upgrade pygame-1.9.4-cp36-cp36m-win_amd64.whl
//Windows10安装pip参考我的另外一篇文章
//Windows10安装pip
Windows10安装pip
//pygame下载地址
pygame-1.9.4-cp36-cp36m-win_amd64.whl