From f80e2c229eb6cda39cbc56234b935b63ee70f1bf Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 15 Oct 2024 17:50:18 -0700 Subject: [PATCH] Fix pip installation after ubuntu upgrade (#17358) --- .github/scripts/setup_generate_license.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/scripts/setup_generate_license.sh b/.github/scripts/setup_generate_license.sh index 71583bfb2b2..85a6a5aaa7a 100755 --- a/.github/scripts/setup_generate_license.sh +++ b/.github/scripts/setup_generate_license.sh @@ -18,6 +18,9 @@ set -e sudo apt-get update && sudo apt-get install python3 -y -curl https://bootstrap.pypa.io/pip/3.5/get-pip.py | sudo -H python3 +# creating python virtual env +python3 -m venv ~/.python3venv +source ~/.python3venv/bin/activate +sudo apt install python3-pip pip3 install wheel # install wheel first explicitly pip3 install --upgrade pyyaml