Mac OS 上关于pygame的安装问题

问题描述

In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include
^
1 error generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

解决办法

1.安装homebrew
2.终端执行:

brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
pip install pygeme

你可能感兴趣的:(Mac OS 上关于pygame的安装问题)