From 525a37bdff106b7ed801b0ead4d8b5f2cb5f21a3 Mon Sep 17 00:00:00 2001 From: Subir Ghosh Date: Wed, 16 Oct 2024 03:37:29 -0600 Subject: [PATCH] fix:Allow pip to install packages in default env (#10794) --- images/ubuntu/scripts/build/install-python.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/ubuntu/scripts/build/install-python.sh b/images/ubuntu/scripts/build/install-python.sh index c87dac52cde8..d88945e3046f 100644 --- a/images/ubuntu/scripts/build/install-python.sh +++ b/images/ubuntu/scripts/build/install-python.sh @@ -19,6 +19,13 @@ export PIPX_HOME=/opt/pipx if is_ubuntu24; then apt-get install --no-install-recommends pipx pipx ensurepath + +# Create temporary workaround to allow user to continue using pip + sudo cat < /etc/pip.conf +[global] +break-system-packages = true +EOF + else python3 -m pip install pipx python3 -m pipx ensurepath