python安装pygame无法找到SDL.h文件
2017-10-21 20:49
381 查看
在引入pygame时出现无法找到SDL.h 文件,各种搜索后,在stackOverFlowO找到答案
这是问题,无法找到文件
[html] view plain copy
In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include <</span>SDL.h>
^
1 error generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
解决方法
[html] view plain copy
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
在终端执行上面的命令
然后执行下面的插入命令
pip installhttps://bitbucket.org/pygame/pygame/get/default.tar.gz
如果是python3 记得使用pip3 插入pygame
放原链接:阅读原文
这是问题,无法找到文件
[html] view plain copy
In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include <</span>SDL.h>
^
1 error generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
解决方法
[html] view plain copy
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
在终端执行上面的命令
然后执行下面的插入命令
pip installhttps://bitbucket.org/pygame/pygame/get/default.tar.gz
如果是python3 记得使用pip3 插入pygame
放原链接:阅读原文
相关文章推荐
- Ubuntu “软件包 libpython3.5-dev 需要重新安装,但是我无法找到相应的安装文件”的问题
- python安装pygame无法找到SDL.h文件
- 解决"无法找到脚本库 "/aspnet_client/system_web/1_1_4322/WebUIValidation.js'.请尝到试手动放置此文件,或通过运行"aspnet_regiis -c"重新安装。"?(转东转西)
- 软件包 xxx需要重新安装,但是我(apt)无法找到相应的安装文件的解决办法
- DISCUZ论坛配置文件 "config_global.php" 未找到或者无法访问, 请确认您已经正确安装了程序
- CentOS下安装MySql mysql.sock 文件无法找到
- Adobe Acrobat 虚拟打印机安装方法(无法找到Adobe PDF资源文件)
- 转:安装IIS无法找到zClientm.exe文件的解决办法
- 安装wampserver的时候出现httpd.exe无法找到组件MSVCR100.dll。安装32位的系统下载VC10 SP1,再重新安装wamp server还是提示找不到.dll文件
- 80 php id = $_GET['id']写法 E: 软件包 xmind 需要重新安装,但是我无法找到相应的安装文件
- 解决xp 系统搜索不能用,无法找到运行搜索助理需要的一个文件。您可能需要运行安装?
- 解决python中路径中包含中文无法找到文件的问题
- [VB.NET]安装完office2003后,无法找到com库文件Interop.Excel.dll?
- 软件包 xxx需要重新安装,但是我(apt)无法找到相应的安装文件的解决办法
- 安装MySQLdb-python时无法找到-lprobes_mysql处理一则
- 卸载Sql Server 提示无法找到安装日志文件解决办法
- ubuntu opera问题解决--E: 软件包 opera 需要重新安装,但是我无法找到相应的安装文件。
- 软件包 adobe-flashplugin 需要重新安装,但是我无法找到相应的安装文件。---解决方案
- 安装MySQLdb-python时无法找到-lprobes_mysql处理一则
- "无法找到运行搜索助理需要的一个文件,您可能需要运行安装"的解决办法