没有名为autobahn.twisted.websocket的模块


./demos/web/start-servers.sh
Traceback (most recent call last):
File "./demos/web/websocket-server.py", line 25, in <module>
from autobahn.twisted.websocket import WebSocketServerProtocol, 
ImportError: No module named autobahn.twisted.websocket

但是我已经安装了这样的:

pip install twisted
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Requirement already satisfied: twisted in /usr/lib/python2.7/dist-packages (16.0.0)

但是为什么?请...

追溯告诉您所需的一切。您缺少autobahn.twisted.websockets。因此,基本上您需要的第一件事是autobahn软件包。您也需要扭曲。因此,请进行以下操作以安装它。

pip install autobahn twisted

最新更新