Mac OS 上关于pygame的安装问题

2017-09-13  本文已影响0人  忆亿亿光年

问题描述

In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
^
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

上一篇 下一篇

猜你喜欢

热点阅读