文章内容

2018/6/29 16:39:01,作 者: 黄兵

attributeerror: module 'websocket' has no attribute 'enabletrace'

最近在使用websocket的时候,报如下错误:

attributeerror: module 'websocket' has no attribute 'enabletrace'


出现这个错误的原因是:

没有安装websocket-client


解决方案:

安装websocket-client,执行如下命令:

pip install websocket-client

之后再次运行,问题解决。


参考资料:AttributeError: 'module' object has no attribute 'WebSocketApp'


黄兵个人博客原创。

转载请注明出处:黄兵个人博客 - attributeerror: module 'websocket' has no attribute 'enabletrace'

分享到:

发表评论

评论列表