Deploy Python environment and configure IA Cloud to use it
To enable working with the OOTB Python 3.7 environment, follow the instruction:
In ZooKeeper on the Master node, reconfigure the Worker Management Service (WMS) as shown below:
/opt/workfusion/zookeeper/bin/zkCli.sh set /config/worker-management-service/bep.wms.worker.execute.env-variables "{'WF_PYTHON_VERSION':'py37', 'MXNET_USE_OPERATOR_TUNING': '0'}"Restart WMS.
Restart Workers.
To set up a custom Python environment, follow the steps below:
Add Python to
/opt/workfusion/python/custom_py.Copy
py37.shtocustom_py.sh.Change the Python path to
custom_py python.In ZooKeeper on the Master node, reconfigure WMS as shown below:
/opt/workfusion/zookeeper/bin/zkCli.sh set /config/worker-management-service/bep.wms.worker.execute.env-variables "{'WF_PYTHON_VERSION':'custom_py', 'MXNET_USE_OPERATOR_TUNING': '0'}"Restart WMS.
Restart Workers.