使用python3的webapp2 [英] webapp2 with python3

查看:181
本文介绍了使用python3的webapp2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带或不带googleAppEngine的情况下都使用带有python 2.7的webapp2。
我现在正尝试在Python 3.3中使用它

I use webapp2 with python 2.7 with or without googleAppEngine. I'm now trying to use it with Python 3.3

我已经使用PIP安装webapp2
安装成功运行,但是当我尝试运行时从IDLE导入webapp2给了我以下错误:

I've used PIP to install webapp2 Install run with success but when I try to import webapp2 from IDLE gaves me the folowing error:

File "<pyshell#0>", line 1, in <module>
    import webapp2
    File "C:\Python3\lib\webapp2.py", line 571
    except Exception, e:
                    ^

我怀疑这是必须更新才能与Python3配合使用的东西...
吗?有人已经这样做了吗?我应该等待webapp2
的更新版本吗?是否可以访问Python 3的Beta版本

I suspect it's a thing that must be updated in order to work with Python3... ?anybody done this already or should I wait for an updated version of webapp2 ?is there any a beta version for Python 3 that we can access

推荐答案

的确, webapp2 与Python 3兼容。

Indeed, webapp2 is not Python 3 compatible.

有一个<该项目的问题跟踪器中的href = https://code.google.com/p/webapp-improved/issues/detail?id=40 rel = noreferrer>关于Python 3的问题,但是该期中的 no 内容旁边。似乎还没有为港口做任何努力。

There is a issue on Python 3 in the issue tracker for the project, but there is next to no content in that issue. There does not appear to be any effort towards a port yet.

这篇关于使用python3的webapp2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆