I would like to know how to install Python 3

webzest
webzest Registered Posts: 12 ✭✭✭✭
edited July 16 in Setup & Configuration

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

Best Answer

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    Answer ✓

    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.

Answers

  • webzest
    webzest Registered Posts: 12 ✭✭✭✭

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

  • Benedikt
    Benedikt Partner, L2 Designer, Registered Posts: 5 Partner

    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-builtin-environment

    Afterwards there is documented how to rebuild the default environment.

    Regards

  • webzest
    webzest Registered Posts: 12 ✭✭✭✭

    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).

Setup Info
    Tags
      Help me…