python安装pygame无法找到SDL.h文件
来源:互联网 发布:笔记本风扇反转软件 编辑:程序博客网 时间:2024/06/02 02:28
博主最近自学python,在引入pygame时出现无法找到SDL.h 文件,各种搜索后,在stackOverFlowO找到答案
这是问题,无法找到文件
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
解决方法
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi在终端执行上面的命令
然后执行下面的插入命令
pip install https://bitbucket.org/pygame/pygame/get/default.tar.gz
如果是python3 记得使用pip3 插入pygame
放原链接:阅读原文
阅读全文
0 0
- python安装pygame无法找到SDL.h文件
- python安装pygame无法找到SDL.h文件
- RADASM中无法找到resource.h文件
- Python:pygame模块及SDL库简介
- pyaudio库的安装(portaudio.h文件无法找到问题解决)
- python-pygame 安装
- window10 python 安装 pygame
- python安装pygame模块
- CentOS下Mysql,无法找到mysql.h头文件
- CentOS下Mysql,无法找到mysql.h头文件
- Qtopia Core 4.3(QT/E)交叉编译安装全过程--出现无法找到头文件zlib.h问题
- stropts.h无法找到问题
- VS无法找到afxres.h
- Python pygame安装过程笔记
- python 3.5 怎么安装pygame
- python+pygame安装教程win8
- Python(Pygame)模块安装
- 【Python-3.5】win7安装Pygame
- activemq消息队列高可用性和负载均衡
- Java 集合框架 泛型
- L2-016. 愿天下有情人都是失散多年的兄妹
- float 精度之坑
- servlet中利用spring的注解@Autowired自动注入service失败,优雅的解决方法
- python安装pygame无法找到SDL.h文件
- FormData
- ES6--数组的扩展
- js自定义方法直接申明式的使用以及在jquery的$(function(){})中使用的区别
- Python学习笔记_类,类对象,实例对象
- Android内存与性能
- Markdown(editormd)语法解析成html
- 设计模式六大原则自我总结
- POJ3436 ACM Computer Factory【网络流】