经过大量搜索之后,此链接中使用homwbrew和pip为我介绍了解决方案。
- 如果尚未从站点安装XQuarts,请安装
- 安装自制程序(链接在这里)
brew install python3
在终端中使用命令安装python3- 安装Mercurial版本控制系统:
brew install mercurial
- 对git版本控制系统执行相同的操作,这是依赖包所需的:
brew install git
- 现在安装Pygame的所有依赖项:
brew install sdl sdl_image sdl_mixer sdl_ttf smpeg portmidi
pip
使用命令安装/usr/local/share/python3/easy_install pip
(在我的情况下,文件夹为/usr/local/Cellar/python3/3.4.3_2/bin
)/usr/local/share/python3/pip install hg
+ http://bitbucket.org/pygame/pygame



