Ad

How Do I Resolve Error Message "no Module Named Websocket"

- 1 answer

I have python 2.7

Then did: pip install websocket-client. Successful

In code have: import websocket

Now running code get error: No module named websocket.

Already search for other issues, which did not solve it.

I am not sure if websocket is part of package websocket or of package websocket-client.

Thanks in advance

Ad

Answer

I found a solution to resolve it.

I had to install it by venv/bin/pip install instead of pip install

Ad
source: stackoverflow.com
Ad