From 194facb19cb5f57860d536f258b1d8866aa6ee07 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sat, 28 Dec 2024 15:37:46 -0800 Subject: [PATCH] Revert "docker: remove pips" This reverts commit 5f7ecc0410352a271fcaa38914c42d92330c29ad. --- install/docker/Dockerfile.full | 7 +++++++ install/docker/template/Dockerfile.full.footer | 3 +++ install/docker/template/Dockerfile.full.header | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/install/docker/Dockerfile.full b/install/docker/Dockerfile.full index 40ec6ee374..3990d7b9e8 100644 --- a/install/docker/Dockerfile.full +++ b/install/docker/Dockerfile.full @@ -51,6 +51,10 @@ RUN apt-get -y install \ # allow pip to install to system RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED +# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian. +# RUN python3 -m pip install --upgrade pip +RUN python3 -m pip install debugpy typing_extensions psutil + ################################################################ # End section generated from template/Dockerfile.full.header ################################################################ @@ -82,6 +86,9 @@ RUN add-apt-repository -y ppa:deadsnakes/ppa && \ # allow pip to install to system RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED +# RUN python3.9 -m pip install --upgrade pip +RUN python3.9 -m pip install debugpy typing_extensions psutil + # Coral Edge TPU # https://coral.ai/docs/accelerator/get-started/#runtime-on-linux RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list diff --git a/install/docker/template/Dockerfile.full.footer b/install/docker/template/Dockerfile.full.footer index 1acb9467ca..444eb60711 100644 --- a/install/docker/template/Dockerfile.full.footer +++ b/install/docker/template/Dockerfile.full.footer @@ -26,6 +26,9 @@ RUN add-apt-repository -y ppa:deadsnakes/ppa && \ # allow pip to install to system RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED +# RUN python3.9 -m pip install --upgrade pip +RUN python3.9 -m pip install debugpy typing_extensions psutil + # Coral Edge TPU # https://coral.ai/docs/accelerator/get-started/#runtime-on-linux RUN echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list diff --git a/install/docker/template/Dockerfile.full.header b/install/docker/template/Dockerfile.full.header index 6397f3766c..239e06dca4 100644 --- a/install/docker/template/Dockerfile.full.header +++ b/install/docker/template/Dockerfile.full.header @@ -48,6 +48,10 @@ RUN apt-get -y install \ # allow pip to install to system RUN rm -f /usr/lib/python**/EXTERNALLY-MANAGED +# ERROR: Cannot uninstall pip 24.0, RECORD file not found. Hint: The package was installed by debian. +# RUN python3 -m pip install --upgrade pip +RUN python3 -m pip install debugpy typing_extensions psutil + ################################################################ # End section generated from template/Dockerfile.full.header ################################################################