Try your hand at analyzing royal sentiment in Dataiku DSS! Learn more

I would like to know how to install Python 3

Level 2
I would like to know how to install Python 3

Hello,

I tried to install python 3 on my UBUNTU 20.4 via Miniconda and directly with the following steps:

 

REM  Install Python 3.6
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
cd /usr/src
sudo wget https://www.python.org/ftp/python/3.6.10/Python-3.6.10.tgz
sudo tar xzf Python-3.6.10.tgz
cd Python-3.6.10
sudo ./configure --enable-optimizations
sudo make altinstall
python3.6 -V
pip3.6 -V

 

 

However, my Jupyter Notebook in DSS only has Python 2.  How do I add a Python 3 env to the DSS Jupyter Notebook?

 

CreatePython3.jpg

 

 

 

 

0 Kudos
4 Replies
Dataiker
Dataiker

Hi,

By default, DSS is installed with Python2.7 built-in env. 

You will need to create Python3.6 code_env. For this navigate to Administration -> Code Envs and create it from New Python Env:

Screenshot 2020-07-29 23.59.20.png

More information can be found here.

 

 

0 Kudos
Level 2
Author

Thank You.  I search for Administration and was able to find the env area to create a new python 3.6 env.

0 Kudos
Level 2
Level 2

Hey, 

I'm always installing Dataiku choosing Python3 to be default.

Here are the commands to achieve this, directly while installation:
https://doc.dataiku.com/dss/latest/installation/python.html#choosing-the-version-of-python-for-the-b...

Afterwards there is documented how to rebuild the default environment.

Regards

Level 2
Author

Thank You for the link.  That will definitely help if I need to recreate a new VM with Ubuntu-ready to go.

Also, I am glad to have discovered the Administration area to build new Environments for R and Python, after the installation process.  This area would have been awesome to know ahead of time, but, it was not late in rescuing me or should I say increased my knowledge of the whole process (installing with Python or installing and then create the required environments with Administration).  Personally, while looking at the process, I think the DSS Manged Environments are much better because one can upgrade, install, and maintain a nice set of environments (replacing the need to install and manage them with conda).

0 Kudos