M1 MAC安装pygame

阅读 131

2022-07-18

1. 先安装下面这些库:

 

brew install hg sdl sdl_image sdl_ttf sdl2 sdl2_image pkgconfig sdl_mixer portmidi

如果没有找到,需要brew更换阿里源,更换方式见:

 

2. git clone git@github.com:pygame/pygame.git

 

3. 进入repo,执行pip install .

 

黄世宇/Shiyu Huang's Personal Page:​​https://huangshiyu13.github.io/​​



精彩评论(0)

0 0 举报