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

  

原文地址:https://www.cnblogs.com/nlsoft/p/10141050.html