- 帖子
- 6
- 精华
- 0
- 积分
- 25
- 阅读权限
- 10
- 注册时间
- 2018-2-11
- 最后登录
- 2018-2-19
|
本帖最后由 JasonHsia 于 2018-2-13 03:58 编辑
各位老师们,继昨天之后,我又来了。不好意思
今天看了一下Crossin微信平台里那个web.py的教学,我是python3.6 这个web应该是安装成功了(截图看看)
但是运行的时候却出现了这个问题,老师们可以帮忙解答一下吗?(下附文字代码和报错记录)
import web
urls = (
'/', 'index'
)
class index:
def GET(self):
return "Hello, world!"
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
——————————————————————————————————(分割线)
C:\Python3\python.exe D:/python/web1.py
Traceback (most recent call last):
File "D:/python/web1.py", line 13, in <module>
app.run()
File "C:\Python3\lib\site-packages\web\application.py", line 312, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
File "C:\Python3\lib\site-packages\web\wsgi.py", line 59, in runwsgi
return httpserver.runsimple(func, server_addr)
File "C:\Python3\lib\site-packages\web\httpserver.py", line 154, in runsimple
func = LogMiddleware(func)
File "C:\Python3\lib\site-packages\web\httpserver.py", line 296, in __init__
from BaseHTTPServer import BaseHTTPRequestHandler
ModuleNotFoundError: No module named 'BaseHTTPServer'
Process finished with exit code 1
谢谢老师们!
|
|