python使用websocket报错AttributeError: module 'websocket' has no attribute 'WebSocketApp'. Did you mean:
python使用websocket报错AttributeError: module 'websocket' has no attribute 'WebSocketApp'. Did you mean: 'websocket'?
网友回复
这个错误是因为你使用的websocket版本过低,不支持WebSocketApp类。
升级websocket版本。可以使用pip命令升级:
pip install websocket-client --upgrade
升级后,要求websocket版本在0.57.0及以上,才会有WebSocketApp类。
import websocket def on_message(ws, message): print(me...
点击查看剩余70%