我做了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