问题描述:在调用websocket模块时,进行如下报错:
ws = websocket.WebSocket()
TypeError: __init__() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'
解决方法:是因为安装了websocket,而没有安装websocket-client 导致的问题,所以补充安装即可。
命令:pip install websocket-client
问题描述:在调用websocket模块时,进行如下报错:
ws = websocket.WebSocket()
TypeError: __init__() missing 3 required positional arguments: 'environ', 'socket', and 'rfile'
解决方法:是因为安装了websocket,而没有安装websocket-client 导致的问题,所以补充安装即可。
命令:pip install websocket-client