web.py 安装问题
搞python的web框架,通过python安装web.py报错,记录一下错误:
File "setup.py", line 6, in ?
from web import __version__
File "/home/yanhui.jy/webpy/web.py-0.36/web/__init__.py", line 27, in ?
from application import *
File "/home/yanhui.jy/webpy/web.py-0.36/web/application.py", line 639
SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'
解决方法是在/home/yanhui.jy/webpy/web.py-0.36/web/application.py文件中将SUFFIX = '$py.class' if sys.platform.startswith('java') else '.pyc'修改为SUFFIX = ‘.pyc’即可。
原因是python版本太低导致。