問題描述
開始一個(gè)簡(jiǎn)單的Hello world"示例.并出現(xiàn)錯(cuò)誤.
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.
這是否意味著我沒有一些字體庫?嘗試在系統(tǒng)中安裝實(shí)際字體的開發(fā)庫.
Is it mean that I have no some font libs? Tried to install dev libs of actual fonts in system.
系統(tǒng):Centos.Python 2.7 版
System: Centos. Python version 2.7
推薦答案
您缺少 PyGame 所需的 SDL TTF 庫.在 Ubuntu 上,這是一個(gè)名為libsdl-ttf2.0-dev"的系統(tǒng)包.我認(rèn)為在 CentOS 上它被稱為SDL_ttf-devel".您可以通過查看此 PyGame install for RedHat 頁面來確保安裝了其余的 PyGame 依賴項(xiàng).
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.
這篇關(guān)于基維.文本提供程序錯(cuò)誤的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!