From 7da396f1abf6427ea5add179219fb6834e4b0f97 Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Fri, 14 Jan 2022 14:10:50 +0800 Subject: [PATCH] [pipeline] Upgrade python version to `python3.8` (#22503) * python3.8 * python3.8 * python3.8 --- scripts/automation_init.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/automation_init.sh b/scripts/automation_init.sh index d50b099ea4ea..0dd3a41e9116 100644 --- a/scripts/automation_init.sh +++ b/scripts/automation_init.sh @@ -1,7 +1,12 @@ #!/bin/bash +# install python3.8 +sudo apt-get install python3.8 +sudo apt-get install python3.8-venv + +# init env rm -rf $TMPDIR/venv-sdk -python3 -m venv $TMPDIR/venv-sdk +python3.8 -m venv $TMPDIR/venv-sdk VIRTUAL_ENV=$TMPDIR/venv-sdk export VIRTUAL_ENV PATH="$VIRTUAL_ENV/bin:$PATH"