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