Community Conundrum 27: Stacks of Questions is live! Read More

Debian 10 and Python 3.6

Level 2
Debian 10 and Python 3.6

Hello,

How can I force to install python 3.6 on debian and register it in dataiku?

perhaps debian10 is not the best choice for dataiku, which distro is the best?

Thank you for your answers.

0 Kudos
7 Replies
Dataiker
Dataiker

HI @BenGonGon 

Using Debian 10 as an operating system for DSS installation is supported so you shouldn't have any issues with that: https://doc.dataiku.com/dss/latest/installation/requirements.html#linux

What about using Python3.6 as base Python -> you will need to use -P flag for the installer.sh during installation: https://doc.dataiku.com/dss/latest/installation/python.html#choosing-the-version-of-python-for-the-b...

 

0 Kudos
Level 2
Author

Hi @sergeyd 

Ok but can you help me please to solve this (see picture)?
it is when I want to install plugin and create a new env.

0 Kudos
Dataiker
Dataiker

Ok, so looks like Python3.6 is not available on Debian 10 by default. There is only 3.7 version installed. You will need to install Python3.6:

 

sudo apt-get update
sudo apt-get install python3.6

 

and make sure it's available in the PATH:

 

dataiku@debian:~$ which python3.6
/usr/bin/python3.6

 

 

After this you should be good with installing code_env for the plugin. 

0 Kudos
Level 2
Author

@sergeydthe first one is already do, but the path is not set ( I think ).
Can you help me to fix that please?

P.S. : non mis à jour = not updated

0 Kudos
Dataiker
Dataiker

Looks like python3.6 is not available in your repositories or there was some other issue with the installation which might be difficult to troubleshoot (including the fact I don't speak French).

In this case, you will need to compile it from the source code. There is a great article from the internet on how to do this for Debian 9 but I just confirmed it worked for Debian 10:

https://www.electrosoftcloud.com/en/install-python-3-on-debian9/

You should be good with just compilation part. There is no need to make it default for the entire system. We only need Python3.6 available in the PATH:

dataiku@debian:~/Python-3.6.10$ which python3.6
/usr/local/bin/python3.6

 

0 Kudos
Dataiker
Dataiker

Hi @BenGonGon ,

 

In addition to Sergey's answer an alternative way to install python 3.6 (and other versions if you need) is through pyenv:

 

sudo apt install git zlib1g-dev -y
curl https://pyenv.run | bash

# Follow the post install steps printed by the previous commands

exec $SHELL
pyenv install 3.6.12
pyenv global system 3.6.12

#Restart DSS

 

Regards

Andrey Avtomonov
R&D Engineer @ Dataiku
Level 2
Author

Python 3.6 is installed and working on my computer.
Thank you very much @sergeyd and @Andrey for your help.

0 Kudos