【发布时间】:2017-07-24 21:51:28
【问题描述】:
我有以下安装 pygame 包的问题。
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
系统信息
- Mac OS-10.9.2
- python 版本-Python 2.7.5 :: Anaconda 1.6.1 (x86_64)
任何建议将不胜感激?谢谢。
【问题讨论】:
-
按照建议的 src/pygame.h:106:10 运行 brew 命令后出现以下错误:致命错误:找不到“SDL.h”文件#include
^ 1 个错误生成.错误:安装脚本退出并出现错误:命令“gcc”失败,退出状态为 1