今天在安装pygame时出错,提示“Python version 2.7 required, which was not found in the registry”,经过网上查找资料后发现只需要新建一个register.py文件就可以了. 新建文件,粘贴下面的内容: # # script to register Python 2.0 or later for use with win32all # and other extensions that require Python registr
访问此网址 下载对应Python版本的pygame,如下图: 下载完成后,会有一个whl后缀的文件. 将此文件复制到Python根目录下的scripts目录下,打开cmd, 切换到scripts目录下,运行命令 pip install <刚刚下载文件的文件名> 等着安装完成就行,如果出现一个错误,提示让你更新pip, You are using pip version 8.1.1, however version 9.0.1 is available.You should consider u