我做了pip install tornado
但我无法运行下面的代码,因为WSGI模块丢失了?Python龙卷风:WSGI模块缺失?
http://flask.pocoo.org/docs/deploying/wsgi-standalone/
from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from myapp import app
http_server = HTTPServer(WSGIContainer(app))
http_server.listen(5000)
IOLoop.instance().start()
嗨,请你粘贴错误和追溯。这可能会有所帮助。 – JunkMechanic
ImportError:您确定安装成功,没有名为wsgi –
的模块。您可以在文件系统的库中找到该模块吗? – JunkMechanic