Skip to content
← Back to Community
Websocket-client
Profile icon
hr3edits

I can't use websocket client since repl is trying to install websocket(wrong package) everytime.

Voters
Profile icon
MaximCre
Profile icon
lukVn
Profile icon
1Tim
Profile icon
hr3edits
Comments
hotnewtop
Profile icon
InvisibleOne

Try using the package manager (left side of your repl screen, looks like a little three-sided cube) or pip to install the correct package first, and then import it.

Profile icon
hr3edits

@InvisibleOne
I tried it both and it didn't work sadly.

Profile icon
InvisibleOne

Are you sure you're importing the package under the correct name? The only time this has been a problem for me was when I had the name spelled wrong. @hr3edits

Profile icon
hr3edits

@InvisibleOne Yes the package name for pip is websocket-client.
When you want to import it you need to import it as websocket.
This is the part where repl gets confused I guess.