Issue 2: auto-sklearn requires python >= 3.7Įven if you manage to get both python3.6 and pip for python3.6, installation of auto-sklearn might still fail with the following error: RuntimeError: Python version >= 3.7 required. This installs both python3.6 and pip3 in the /usr/bin directory of your ubuntu:18/04 container. The following commands can be used to install python3.6 binary and the corresponding pip: RUN apt-get update Even when python3.6 gets installed in the container (after calling apt install software-properties-common -y), you do not get pip with it. So RUN ln -s /usr/bin/pip3 /usr/bin/pip line in your Dockerfile does nothing. If you inspect the contents of the /usr/bin directory of the pulled image, you will notice that there is no pip or pip3 there. This returns "Unable to locate package pip." I tried removing "apt install pip" incase Python 3.8 comes with it, but it gives me the error: "pip: not found." I see two consecutive issues here, so let's address them accordingly: Issue 1: missing pip in the Ubuntu image Auto-sklearn requires Linux as well which is why I'm using "FROM ubuntu" rather than "FROM python" cause "FROM python" seems to build a container on whatever native OS is running on the computer building the container, which for me is Windows. This installs pip, but auto-sklearn requires Python version 3.6 or higher and this installs a lower version. This returns "Unable to locate package pip." I tried removing "apt install pip" incase Python 3.8 comes with it, but it gives me the error: "pip: not found." FROM ubuntu:18.04 RUN ln -s /usr/bin/python3.8 /usr/bin/python RUN add-apt-repository ppa:deadsnakes/ppa RUN apt install software-properties-common -y I've tried quite a few things with no success FROM ubuntu:18.04 I'm trying to install Python 3.6 or above with pip in an docker container that runs Ubuntu.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |