Debian 10 and Python 3.6
![BenGonGon](https://us.v-cdn.net/6038231/uploads/lithium_attachments/n2197i2CC893C0E288F110.jpg)
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.
Best Answers
-
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 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
-
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
Answers
-
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 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-builtin-environment
-
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. -
Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 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.
-
@sergeyd
the 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