mlcube_examples icon indicating copy to clipboard operation
mlcube_examples copied to clipboard

Upgrade base image to fix issue with get-pip.py

Open tanertopal opened this issue 3 years ago • 1 comments

Currently all cubes will break when trying to install pip using get-pip.py. The reason for this is that get-pip.py has dropped compatibility with Python 3.6 (see here) which is default installed version of the python3 package in Ubuntu 18.04. Using the Ubuntu 20.04 base image will resolve this issue.

The error which will otherwise be thrown in the docker build process is:

 => ERROR [3/6] RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py &&     python3 get-pip.py &&     rm get-pip.py                                                                            0.8s
------
 > [3/6] RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py &&     python3 get-pip.py &&     rm get-pip.py:
#6 0.753 ERROR: This script does not work on Python 3.6 The minimum supported Python version is 3.7. Please use https://bootstrap.pypa.io/pip/3.6/get-pip.py instead.

tanertopal avatar Feb 23 '22 18:02 tanertopal

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

github-actions[bot] avatar Feb 23 '22 18:02 github-actions[bot]