Python 3 for code-env inside a plugin

FrankThales
FrankThales Registered Posts: 2 ✭✭✭✭

Hi, When I create my code-env managed for my plugin I have just python 2.7.

How can I use python 3.6 ?

How my admin need to modify the DSS install to have multiple Python version ?

Thank you

Best Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,225 Dataiker
    Answer ✓

    Hi,

    To add additional Python version for code environment of plugin you will need to edit

    code-env/python/desc.json, -> acceptedPythonInterpreters to include different python version:

    Here is an example that will allow Python 3.6 and 3.7 and request Pandas 1
    {
    "acceptedPythonInterpreters": ["PYTHON36", "PYTHON37"],
    "forceConda": false,
    "installCorePackages": true,
    "installJupyterSupport": false,
    "corePackagesSet": "PANDAS10"
    }


    Thanks,

  • FrankThales
    FrankThales Registered Posts: 2 ✭✭✭✭
    Answer ✓

    Thank you very much. All is OK for me now

Setup Info
    Tags
      Help me…