python中import websocket,提示cannot import name ‘create_connection’ from ‘websocket’,网上都说由于缺少websocket_client 组件导致,但是我确实已经安装了websocket_client .
解决办法
pip uninstall websocket-client
pip uninstall webscoket
然后重新安装,必须先安装websocket,再安装websocket-client
pip install webscoket
pip install websocket-client