码迷,mamicode.com
首页 > 移动开发 > 详细

Cheetah使用出错!You don't have the C version of NameMapper installed!

时间:2014-07-30 17:35:24      阅读:1427      评论:0      收藏:0      [点我收藏+]

标签:python   cheetah   

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

Cheetah使用出错!You don't have the C version of NameMapper installed!,布布扣,bubuko.com

Cheetah使用出错!You don't have the C version of NameMapper installed!

标签:python   cheetah   

原文地址:http://blog.csdn.net/magicharvey/article/details/38302217

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!