[Error] ModuleNotFoundError: No module named 'websocket'

1 error

ModuleNotFoundError: No module named 'websocket'

2 solutions

pip install websocket

ef6e890708da46cd86629f9fb5d48035.png

 

1 error

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

2 Analysis

This is usually caused by the websocket dependency package not being installed. The websocket.enableTrace() method is in the websocket-client library, so installing this library can solve the problem.

3 solutions
pip install websocket-client

f2643819589342f58a91b6e95457a991.png

 

1 error

 import tornado.web
ModuleNotFoundError: No module named 'tornado'

2 solutions

pip3 install tornado

9a372eac3a24409fa4c0698dae5d80d7.png

 

Guess you like

Origin blog.csdn.net/wss794/article/details/132192568