首页 > 解决方案 > 我安装了 Tornado,但我无法运行我的脚本。我不断收到“ImportError:没有名为龙卷风的模块”

问题描述

我刚来这地方。我目前正在运行一个虚拟环境,但是我似乎无法运行我正在测试的脚本。

我的虚拟环境中安装了 tornado 4.4.2。

请参考我的代码片段如下:

from tornado import httpserver, httpclient, ioloop, web, websocket, gen

但是,我不断收到以下错误:

"C:\Users\User\.\main.py"line 7, in <module>
    from tornado import httpserver, httpclient, ioloop, web, websocket, gen
ImportError: No module named tornado"

标签: pythonpython-3.xpython-importimporterror

解决方案


推荐阅读