我安装了龙卷风,但我不能运行我的脚本。我一直在说“恐怖:没有叫龙卷风的模块”

2024-04-23 18:14:18 发布

您现在位置:Python中文网/ 问答频道 /正文

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

我的虚拟环境中安装了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"

Tags: 代码fromimport脚本web错误虚拟环境users