首页 > 代码库 > Cheetah使用出错!You don't have the C version of NameMapper installed!
Cheetah使用出错!You don't have the C version of NameMapper installed!
1.问题
/usr/lib/python2.5/site-packages/Cheetah/Compiler.py:1532: UserWarning:You don‘t have the C version of NameMapper installed! I‘m disabling Cheetah‘s useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
"\nYou don‘t have the C version of NameMapper installed!
2.解决方法
You can download a compiled version of _namemapper here:
http://www.cheetahtemplate.org/download.html
Pick _namemapper.pyd2.4 or _namemapper.pyd2.5 depending on your Python version.
Rename the file to _namemapper.pyd and put it in folder:
PYTHON-PATH\Lib\site-packages\Cheetah
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。