AttributeError: 'module' object has no attribute 'enableTrace'

Traceback (most recent call last):
  File "Long-lived-connection.py", line 29, in <module>
    websocket.enableTrace(True)
AttributeError: 'module' object has no attribute 'enableTrace'

python 出现如上错误是 安装的模块不整错 需要重新安装正确的模块

pip uninstall websocket-client
pip uninstall websocket
pip install websocket-client

  

 

posted @ 2018-12-19 02:03  1CM  阅读(2093)  评论(0编辑  收藏  举报