Get Python Interpreter List with DSS Python APIs
adamnieto
Neuron 2020, Neuron, Registered, Neuron 2021, Neuron 2022, Neuron 2023 Posts: 88 Neuron
Hello!
I was wondering if anyone knows if it is possible to get the list of interpreters for Python that are available to use on the Dataiku instance via the Dataiku Python APIs. I am right now trying to use the APIs to create a code environment and was wondering if there was a way to know what versions of Python are available to select from in order to create a code env. For example, creating with Python 3.6, Python2.7 etc.
Thank you for your help!
Best,
Adam
Best Answer
-
dima_naboka Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 28 DataikerHello Adam,DSS is compatible with Python versions 2.7, 3.5 and 3.6. Hence, if they are available at OS level you should be able to use them with code env. Following Linux shell commands should help you find out what version are available on the node:
ls -ls /usr/bin/python* whereis python python3.6 -V python3.5 -V
Typically (but not necessarily) Python 2.7 will be used as builtin Python environment and an attempt to install Python 3.6 will be performed when installing dependences as part of /scripts/install/install-deps.sh.
Answers
-
Thank you for your help!