运行web2py报错

Python/PHP/Perl 开发与设计
回复
tomcatleee
帖子: 104
注册时间: 2009-08-11 21:48
送出感谢: 0
接收感谢: 0

运行web2py报错

#1

帖子 tomcatleee » 2011-03-14 17:45

下了个source code的web2py,解压运行:

代码: 全选

tom@ubuntu:~/web2py$ web2py.py
Traceback (most recent call last):
  File "/usr/lib/command-not-found", line 10, in <module>
    import CommandNotFound
ImportError: No module named CommandNotFound
tom@ubuntu:~/web2py$ 

代码: 全选

tom@ubuntu:~/web2py$ python web2py.py -a 'pwd' -i 127.0.0.1 -p 8000
Traceback (most recent call last):
  File "web2py.py", line 16, in <module>
    import gluon.widget
  File "/home/tom/web2py/gluon/widget.py", line 85
    print 'warning: unable to detect your browser'
                                                 ^
SyntaxError: invalid syntax
tom@ubuntu:~/web2py$ 
不知道是不是这么直接运行哦,报的错也让我莫名其妙
回复

回到 “Python/Php/Perl”