Commit 8013b8a2 authored by helloyongyang's avatar helloyongyang
Browse files

add --use-deprecated=legacy-resolver for pip install

parent c705464d
......@@ -25,9 +25,7 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
&& update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1
RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple \
&& pip install packaging ninja vllm torch torchvision diffusers transformers==4.45.2 \
tokenizers accelerate safetensors opencv-python numpy imageio imageio-ffmpeg \
einops loguru sgl-kernel qtorch ftfy easydict
&& pip install -r /workspace/lightx2v/requirements.txt --use-deprecated=legacy-resolver
# install flash-attention 2
RUN cd lightx2v/3rd/flash-attention && pip install --no-cache-dir -v -e .
......
......@@ -27,7 +27,7 @@ git submodule update --init --recursive
# create conda env and install requirments
conda create -n lightx2v python=3.11 && conda activate lightx2v
pip install -r requirements.txt
pip install -r requirements.txt --use-deprecated=legacy-resolver
# install flash-attention 2
cd lightx2v/3rd/flash-attention && pip install --no-cache-dir -v -e .
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment