diff --git a/scripts/install_python2.sh b/scripts/install_python2.sh index f4cf75a19..b12eccf58 100755 --- a/scripts/install_python2.sh +++ b/scripts/install_python2.sh @@ -16,9 +16,12 @@ export DEBIAN_FRONTEND=noninteractive ARCH=$(dpkg --print-architecture) -# Older version http://launchpadlibrarian.net/651276954/virtualenv_20.19.0+ds-1_all.deb -# unfortunately drags in newer 20.23+ version of python3-virtualenv, preventing Python 2. -# So let's try pip: (which installs to /usr/local/bin) +# 2023-05-19: #3573 -> PR #3582: Ubuntu 23.10's virtualenv 20.23 no longer +# supports Python 2. Older version from Ubuntu 23.04 seemed plausible... +# http://launchpadlibrarian.net/651276954/virtualenv_20.19.0+ds-1_all.deb +# ...but drags in newer 20.23+ version of python3-virtualenv, leaving us +# with /usr/bin/virtualenv 20.23 once again, i.e. preventing Python 2. +# Whereas pip (which installs /usr/local/bin/virtualvenv) at least works: apt -y install python3-pip pip install virtualenv==20.21.1 --break-system-packages #apt -y install virtualenv