From e47a1d43088cce8f6591e53e8367939855cd7864 Mon Sep 17 00:00:00 2001 From: Yi Zhang Date: Mon, 5 Aug 2024 21:38:01 +0800 Subject: [PATCH] install python --- .../Dockerfile.package_ubi8_cuda_tensorrt10_0_torch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/ci_build/github/linux/docker/Dockerfile.package_ubi8_cuda_tensorrt10_0_torch b/tools/ci_build/github/linux/docker/Dockerfile.package_ubi8_cuda_tensorrt10_0_torch index 319fb0216579c..a94638adb3ad9 100644 --- a/tools/ci_build/github/linux/docker/Dockerfile.package_ubi8_cuda_tensorrt10_0_torch +++ b/tools/ci_build/github/linux/docker/Dockerfile.package_ubi8_cuda_tensorrt10_0_torch @@ -14,6 +14,14 @@ ENV PATH /opt/python/cp38-cp38/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/us RUN dnf install -y bash wget &&\ dnf clean dbcache +# Install python3 +RUN dnf install -y \ + python3.9 \ + python39-pip \ + cd /usr/local/bin &&\ + ln -s /usr/bin/python3 python3.9 &&\ + ln -s /usr/bin/pip3 pip3.9; + RUN pip3 install --upgrade pip RUN pip3 install setuptools>=68.2.2