From eb3999f4a13e5509eceb76a2a31c965ef22c8784 Mon Sep 17 00:00:00 2001 From: brianlan Date: Wed, 3 Mar 2021 22:13:18 +0800 Subject: [PATCH 1/2] Fixed the URL to get-pip.py, as the old one doesn't support py2.7 any more. --- docker/install/ubuntu_install_python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/install/ubuntu_install_python.sh b/docker/install/ubuntu_install_python.sh index 58d72f327aa6..ee999cc83298 100755 --- a/docker/install/ubuntu_install_python.sh +++ b/docker/install/ubuntu_install_python.sh @@ -34,7 +34,7 @@ apt-get install -y python-pip python-dev python3.6 python3.6-dev rm -f /usr/bin/python3 && ln -s /usr/bin/python3.6 /usr/bin/python3 # Install pip -cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python2 get-pip.py && python3.6 get-pip.py +cd /tmp && wget -q https://bootstrap.pypa.io/2.7/get-pip.py && python2 get-pip.py && python3.6 get-pip.py # Pin pip version pip3 install pip==19.3.1 From 64238b5207dd896796b74750473176db5744e5ce Mon Sep 17 00:00:00 2001 From: brianlan Date: Thu, 4 Mar 2021 10:34:38 +0800 Subject: [PATCH 2/2] removed get-pip.py for python2, as tvm mainline has decided to drop the support for python2. --- docker/install/ubuntu_install_python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/install/ubuntu_install_python.sh b/docker/install/ubuntu_install_python.sh index ee999cc83298..d3af336491cc 100755 --- a/docker/install/ubuntu_install_python.sh +++ b/docker/install/ubuntu_install_python.sh @@ -34,7 +34,7 @@ apt-get install -y python-pip python-dev python3.6 python3.6-dev rm -f /usr/bin/python3 && ln -s /usr/bin/python3.6 /usr/bin/python3 # Install pip -cd /tmp && wget -q https://bootstrap.pypa.io/2.7/get-pip.py && python2 get-pip.py && python3.6 get-pip.py +cd /tmp && wget -q https://bootstrap.pypa.io/get-pip.py && python3.6 get-pip.py # Pin pip version pip3 install pip==19.3.1