fix: 修复 zmq 依赖问题

This commit is contained in:
2026-05-17 00:05:04 +08:00
parent 2918662222
commit dc8fa36a28
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ pip install --upgrade 'heurams[basic] @ https://git.pluv27.top/pluv/HeurAMS/arch
从较前沿, 大致稳定的 `dev` 分支安装, 并安装适用于用户体验的可选依赖(如果您追求较前沿的改进): 从较前沿, 大致稳定的 `dev` 分支安装, 并安装适用于用户体验的可选依赖(如果您追求较前沿的改进):
``` ```
pip install --force-reinstall 'heurams[basic] @ https://git.pluv27.top/pluv/HeurAMS/archive/dev.zip' pip install --force-reinstall --no-deps 'heurams[basic] @ https://git.pluv27.top/pluv/HeurAMS/archive/dev.zip'
``` ```
安装适用于一般计算机的通用音频模块(基于 playsound3):\ 安装适用于一般计算机的通用音频模块(基于 playsound3):\
@@ -52,7 +52,7 @@ pip install --upgrade 'heurams[audio-playsound] @ https://git.pluv27.top/pluv/He
`dev` 分支进行基于 git 的可编辑安装, 并安装全部可选依赖(推荐): `dev` 分支进行基于 git 的可编辑安装, 并安装全部可选依赖(推荐):
``` ```
pip install --force-reinstall 'heurams[all] @ https://git.pluv27.top/pluv/HeurAMS/archive/dev.zip' pip install --force-reinstall --no-deps 'heurams[all] @ https://git.pluv27.top/pluv/HeurAMS/archive/dev.zip'
``` ```
> 您也可以从 `refactor/...` 等特定分支安装 > 您也可以从 `refactor/...` 等特定分支安装
+1 -1
View File
@@ -2,13 +2,13 @@ from heurams.interface import *
from heurams.context import config_var from heurams.context import config_var
from heurams.services.logger import get_logger from heurams.services.logger import get_logger
import threading import threading
import zmq
import pickle import pickle
logger = get_logger(__name__) logger = get_logger(__name__)
def start_debug_server(app): def start_debug_server(app):
import zmq
logger = get_logger("zmq_debug") logger = get_logger("zmq_debug")
context = zmq.Context() context = zmq.Context()
socket = context.socket(zmq.REP) socket = context.socket(zmq.REP)