===================================================
1,bash /workspace/assets/start.sh 2,/workspace/venv312/bin/python main.py --listen 0.0.0.0 --port 8189 3.lsof -t -i:8189 | xargs -r kill -9 && cd /workspace/ComfyUI && /workspace/venv312/bin/python main.py --listen 0.0.0.0 --port 8189
source /workspace/venv312/bin/activate
deactivate
bash /workspace/assets/update_comfyui.sh
===================================================
视频教程:https://www.bilibili.com/video/BV18zMWzpEgs/
cd /workspace find /workspace/ComfyUI/custom_nodes -mindepth 2 -type d -name ".git" -exec rm -rf {} + git add . git commit -m "同步更新" git push
source /workspace/venv312/bin/activate
pip uninstall -y hydra-core omegaconf
pip install --no-cache-dir --only-binary=:all: "hydra-core==1.3.2" "omegaconf==2.3.0" "antlr4-python3-runtime==4.9.3"
作用: 找出报错的python包 grep -R "Error importing generated parsers" $(python -c "import site; print(site.getsitepackages()[0])")
作用: 找出引用了出错包的ComfyUI节点 grep -R -n -i -E "from[[:space:]]+hydra|import[[:space:]]+hydra|omegaconf" /workspace/ComfyUI/custom_nodes || true
pip uninstall -y hydra-core omegaconf
pip install --no-cache-dir --only-binary=:all: "hydra-core==1.3.2" "omegaconf==2.3.0" "antlr4-python3-runtime==4.9.3"
此步骤不做过多讲解, 实在不懂可以问ChatGPT python - <<'PY' from hydra.core.override_parser import overrides_parser, overrides_visitor print("HYDRA PARSER IMPORT OK") PY
deactivate source /workspace/venv312/bin/activate /workspace/venv312/bin/python main.py --listen 0.0.0.0 --port 8189 或者 lsof -t -i:8189 | xargs -r kill -9 && cd /workspace/ComfyUI && /workspace/venv312/bin/python main.py --listen 0.0.0.0 --port 8189