Pythonshell for Python3 ?!

I use pythonshell to import printout data from a Python3 script but pythonshell uses python2 -> this leads to an error. Now the question is how can I tell the Powershell that it should use python3 or is there another solution? Standard version python is 3.7.3.

You can use node-red-node-daemon https://flows.nodered.org/node/node-red-node-daemon to interact with longer running python scripts and there output.
Only thing good to know is that you only put python3 in the command and put everything else like the name of your python file and arguments in the argument field of the node config.
Johannes

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.