学完python之后就想玩些进阶的, 比如pygame.
但是在Mac OS X下安装pygame遇到了不少坑, 但最终还是顺利解决了, 也再一次深刻体会到google和百度的差距....sdl_mixer --with-libvorbis
$ brew tap homebrew/headonly
$ brew install smpeg
$ brew install mercurial
$ pip3...Run Python from the command line:
$ python3
and try loading Pygame:
>>> import pygame
If you don’t see...上面英文部分出自:KidsCanCode
有几个坑:
----
一开始,都是直接到pygame.org下载,熟知…上面只有32位的pygame,结果导致import pygame错误:
Traceback...----
如果你之前已经安装过homebrew,在安装sdl_image的时候遇到404,那么可能是你安装homebrew的镜像地址有问题, 你可以试试, 可能连git都装不了
方法:卸载homebrew