簡體   English   中英

websocket和websocket-client,如何同時使用?

[英]websocket and websocket-client, how to use both?

我有一些依賴於python websocket軟件包的軟件包https://github.com/aaugustin/websockets

現在我想安裝另一個依賴於websocket-client包https://github.com/websocket-client/websocket-client的

兩個軟件包都使用命令

from websockets import ...

因此,目前無法同時使用兩者。 有沒有針對這種行為的解決方法? 除了分叉其中一個程序包。

謝謝!

快速瀏覽您提供的github鏈接表明應該沒有問題:

WebSockets是由導入的

import websockets

websocket-client由導入

import websocket

請注意,在第二種情況下沒有“ s”。 話雖如此,如果您將它們用於不同的項目,則無論如何應考慮使用諸如virtualenvconda類的開發環境。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM