Unverified Commit 3b37fefe authored by Sayak Paul's avatar Sayak Paul Committed by GitHub
Browse files

[Docker] include python3.10 dev and solve header missing problem (#8865)

include python3.10 dev and solve header missing problem
parent bbd2f9d4
...@@ -16,24 +16,24 @@ RUN apt install -y bash \ ...@@ -16,24 +16,24 @@ RUN apt install -y bash \
ca-certificates \ ca-certificates \
libsndfile1-dev \ libsndfile1-dev \
libgl1 \ libgl1 \
python3.9 \ python3.10 \
python3.9-dev \ python3.10-dev \
python3-pip \ python3-pip \
python3.9-venv && \ python3.10-venv && \
rm -rf /var/lib/apt/lists rm -rf /var/lib/apt/lists
# make sure to use venv # make sure to use venv
RUN python3.9 -m venv /opt/venv RUN python3.10 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH" ENV PATH="/opt/venv/bin:$PATH"
# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py) # pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
RUN python3.9 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \ RUN python3.10 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \
python3.9 -m uv pip install --no-cache-dir \ python3.10 -m uv pip install --no-cache-dir \
torch \ torch \
torchvision \ torchvision \
torchaudio \ torchaudio \
invisible_watermark && \ invisible_watermark && \
python3.9 -m pip install --no-cache-dir \ python3.10 -m pip install --no-cache-dir \
accelerate \ accelerate \
datasets \ datasets \
hf-doc-builder \ hf-doc-builder \
......
...@@ -16,6 +16,7 @@ RUN apt install -y bash \ ...@@ -16,6 +16,7 @@ RUN apt install -y bash \
ca-certificates \ ca-certificates \
libsndfile1-dev \ libsndfile1-dev \
python3.10 \ python3.10 \
python3.10-dev \
python3-pip \ python3-pip \
libgl1 \ libgl1 \
python3.10-venv && \ python3.10-venv && \
......
...@@ -17,6 +17,7 @@ RUN apt install -y bash \ ...@@ -17,6 +17,7 @@ RUN apt install -y bash \
libsndfile1-dev \ libsndfile1-dev \
libgl1 \ libgl1 \
python3.10 \ python3.10 \
python3.10-dev \
python3-pip \ python3-pip \
python3.10-venv && \ python3.10-venv && \
rm -rf /var/lib/apt/lists rm -rf /var/lib/apt/lists
......
...@@ -17,6 +17,7 @@ RUN apt install -y bash \ ...@@ -17,6 +17,7 @@ RUN apt install -y bash \
libsndfile1-dev \ libsndfile1-dev \
libgl1 \ libgl1 \
python3.10 \ python3.10 \
python3.10-dev \
python3-pip \ python3-pip \
python3.10-venv && \ python3.10-venv && \
rm -rf /var/lib/apt/lists rm -rf /var/lib/apt/lists
......
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