We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee6ba6 commit cc66acdCopy full SHA for cc66acd
Dockerfile
@@ -13,8 +13,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
13
# 克隆 ComfyUI 项目
14
RUN git clone https://github.com/comfyanonymous/ComfyUI.git /ComfyUI
15
16
-# 安装 PyTorch,指定 ROCm 相关包
17
-RUN pip3 install -v --no-cache-dir torch torchvision torchaudio \
+# 创建并激活虚拟环境
+RUN python3 -m venv /venv
18
+
19
+# 激活虚拟环境并安装 PyTorch 相关依赖
20
+RUN /venv/bin/pip install --no-cache-dir torch torchvision torchaudio \
21
--index-url https://download.pytorch.org/whl/rocm6.2
22
23
# 安装 ComfyUI 项目依赖
0 commit comments