Python Tornado: WSGI module missing?

后端 未结 1 1430
孤城傲影
孤城傲影 2021-01-13 03:22

I did a pip install tornado but I cannot run the following code because WSGI module is missing??

http://flask.pocoo.org/docs/deploying/wsgi-standalone/<

相关标签:
1条回答
  • 2021-01-13 03:55

    If your file is named tornado.py, it will try to import things from that file instead of the directory on site-packages. This is probably the most common source of "no module named X" ImportErrors. Rename the file and it should work.

    After you rename the file from tornado.py to something else, also delete the tornado.pyc that got created.

    0 讨论(0)
提交回复
热议问题