I'd like to use the python function node using Python3 instead of Python2.7... I've tried directly editing the file ~/.node-red/node_modules/node-red-contrib-python-function/lib/python-function.js as the following:
Then I restart Node-RED... But I always get a sequence of errors if I try to do it. I've also tried to manually change the system command "python" to run "python3" instead (I use Ubuntu 18.04) but I got the same errors. Is it possible to use this python function on Node-RED with python3?
I'd like to use the python function node using Python3 instead of Python2.7... I've tried directly editing the file
~/.node-red/node_modules/node-red-contrib-python-function/lib/python-function.js
as the following:Then I restart Node-RED... But I always get a sequence of errors if I try to do it. I've also tried to manually change the system command "python" to run "python3" instead (I use Ubuntu 18.04) but I got the same errors. Is it possible to use this python function on Node-RED with python3?