我已经通过使用安装了 twisted 和 Autobahn websocket
pip install twisted
pip install autobahn
但是,当我从 Autobahn 导入任何工厂时,我会收到无法导入名称错误。
>>> from twisted.internet import reactor
>>> from autobahn.websocket import WebSocketClientFactory
Traceback (most recent call last):
File "<console>", line 1, in <module>
ImportError: cannot import name WebSocketClientFactory
有什么我想念的吗?这是点冻结
Twisted==13.2.0
Twisted-Core==12.3.0
Twisted-Names==12.3.0
Twisted-Web==12.3.0
autobahn==0.7.4
websocket==0.2.1
websocket-client==0.13.0