我使用安装了twisted和Autobahn websocket
pip install twisted
pip install autobahn
Run Code Online (Sandbox Code Playgroud)
但是当我从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
Run Code Online (Sandbox Code Playgroud)
有什么我想念的吗?这是冻结点
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
Run Code Online (Sandbox Code Playgroud)