Installing Python 3 in other env

danipolo Registered Posts: 1 ✭✭✭✭

Hi everybody,

I'm using the Docker image to run Dataiku in my server. I added a few lines to the image to add support to Python 3.

FROM dataiku/dss<BR /><BR />USER root<BR /><BR />RUN apt-get update && apt-get install -y python3 wget<BR /><BR />RUN wget<BR /><BR />RUN ln -s /usr/bin/python3 /usr/local/bin/python<BR /><BR />RUN python<BR /><BR />RUN pip3 install SerpScrap --upgrade

When I go to DSS, I can't find the way to declare a path different than:

Environment creation failed

/home/dataiku/dss/bin/python failed (exit code: 3)

The path python3.6 (from --python=python3.6) does not exist

I see in the documentation python must be there but if I don't know how. I tried to create a symlink to /home/dataiku/dss/bin/python during the build of the Dockerfile but it doesn't work for me. What's the correct way to install Python 3 in the docker image?

Thank you


  • Alex_Combessie
    Alex_Combessie Alpha Tester, Dataiker Alumni Posts: 539 ✭✭✭✭✭✭✭✭✭


    You are correct, this error message indicates that python3.6 is not installed in the docker image. To install it, we would recommend that you build your own Docker image. Our image is built using these tools:

    You can edit that Dockerfile to install python3.6. In short, DSS expects python3.6 to be in the PATH variable. We thus recommend to set up a separate python3.6 in the PATH. No need to link python3 to python, you can have python -> path to python 2.7 executable and python3.6 -> path to python 3.6 executable.

    Let me know if you need more details on the above.



Setup Info
      Help me…