From f2d642b94d942a17b804bd06151712bb967e9f62 Mon Sep 17 00:00:00 2001 From: alfrix Date: Sun, 30 Jan 2022 18:28:27 -0300 Subject: [PATCH] Installer: Workaround pip 22.0 issues --- scripts/KlipperScreen-install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/KlipperScreen-install.sh b/scripts/KlipperScreen-install.sh index 77951527..77d2fd32 100755 --- a/scripts/KlipperScreen-install.sh +++ b/scripts/KlipperScreen-install.sh @@ -55,7 +55,13 @@ install_packages() create_virtualenv() { echo_text "Creating virtual environment" - [ ! -d ${KSENV} ] && virtualenv -p /usr/bin/python3 ${KSENV} + if [ ! -d ${KSENV} ]; then + GET_PIP="${HOME}/get-pip.py" + virtualenv --no-pip -p /usr/bin/python3 ${KSENV} + curl https://bootstrap.pypa.io/pip/3.6/get-pip.py -o ${GET_PIP} + ${KSENV}/bin/python ${GET_PIP} + rm ${GET_PIP} + fi source ${KSENV}/bin/activate while read requirements; do