问题描述
开始一个简单的Hello world"示例.并出现错误.
Start a simple sample of "Hello world". And got an error.
[CRITICAL] [Text ] Unable to find any valuable Text provider at all!
[CRITICAL] [App ] Unable to get a Text provider, abort.
这是否意味着我没有一些字体库?尝试在系统中安装实际字体的开发库.
Is it mean that I have no some font libs? Tried to install dev libs of actual fonts in system.
系统:Centos.Python 2.7 版
System: Centos. Python version 2.7
推荐答案
您缺少 PyGame 所需的 SDL TTF 库.在 Ubuntu 上,这是一个名为libsdl-ttf2.0-dev"的系统包.我认为在 CentOS 上它被称为SDL_ttf-devel".您可以通过查看此 PyGame install for RedHat 页面来确保安装了其余的 PyGame 依赖项.
You are missing the SDL TTF library required by PyGame. On Ubuntu, this is a system package called "libsdl-ttf2.0-dev". I think on CentOS it is called "SDL_ttf-devel". You can ensure you have the rest of the PyGame dependencies installed by looking at this PyGame install for RedHat page.
这篇关于基维.文本提供程序错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)