如何在Python中导入命名的Web?
我在64位的Windows上尝试安装web.py。
结果没安装成功。
出现了错误: "ImportError: No module named 'utils'"
from __future__ import generators
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
import template, form
import session
from utils import *
from db import *
from net import *
from wsgi import *
from http import *
from webapi import *
from httpserver import *
from debugerror import *
from application import *
from browser import *
try:
import webopenid as openid
except ImportError:
pass # requires openid module
我使用的是python3.3。
这个错误的原因是因为我用的是python3.3吗?
我尝试用easy_install来安装。
但又出现了错误。
easy_install需要python2.3。
所有的问题都是因为python 3.3吗?
我该如何在python中导入名为web的模块?
谢谢你..!!
1 个回答
0
据我所知,web.py 这个框架不支持 Python 3 及以上版本。
https://groups.google.com/forum/?fromgroups=#!topic/webpy/Qa-U1kABk4w
不用说,我觉得这方面还有很多工作要做,但并不是不可能。对于维护者们,你们有没有计划向 Python 3 迁移呢?我很乐意帮助实现这个目标。
问题追踪链接:https://bugs.launchpad.net/webpy/+bug/277266
让 web.py 准备好支持 Python 3.0
负责人: anandology
重要性: 中等
里程碑: 0.35
状态: 已确认