解决cocos2dx 打包lua环境搭建问题( ImportError: No module named Cheetah.Template)

 

将c++ 封装成lua调用时,显示一下错误:

PYTHON_BIN not defined, use current python.

generating userconf.ini...

Generating bindings for cocos2dx_TextLoader...

Traceback (most recent call last):

  File "/Applications/Cocos/frameworks/cocos2d-x-3.5/tools/bindings-generator/generator.py", line 16, in <module>

    from Cheetah.Template import Template

ImportError: No module named Cheetah.Template

---------------------------------

Generating lua bindings fails.

 

 

   

 从错误提示就知道缺少cheetah库,所以先从http://pythonhosted.org//Cheetah/这个地址下载库,打开终端,cd 到下载文件夹的目录,

输入命令:sudo python setup.py install即可

 

posted on 2015-10-12 00:10  HemJohn  阅读(1685)  评论(0编辑  收藏  举报

导航