I have some packages that rely on the python websocket package https://github.com/aaugustin/websockets
Now I would like to install another package that depends on the websocket-client package https://github.com/websocket-client/websocket-client
Both packages are using the command
from websockets import ...
So right now it doesn't work to use both. Is there any workaround for that kind of behavior? Except for forking one of the packages.
Thanks!
A quick look at the github links you provided suggests that there should be no problem:
WebSockets is imported by
import websockets
websocket-client is imported by
import websocket
Notice that there is no "s" in the second case. That being said, if you are using them for different projects you should consider using dev environments like virtualenv
or conda
anyway.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.