You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature request: it would be nice to have easy way within Node Red to select the Python interpreter to be used. At the moment this goes by default to Python 2.7 rather than Python 3.5.
The manual way to do this is by changing line 18 of PythonshellNode.js to replace 'python' with python3.5 (or python3) i.e. change:
var py = this.spawn('python', [this.pyfile, msg]);
to:
var py = this.spawn('python3.5', [this.pyfile, msg]);
The text was updated successfully, but these errors were encountered:
Sorry, I found it by myself: In src/PythonShellNode.js in line 49: var spawnCmd = (this.virtualenv ? this.virtualenv + '/bin/' : '') + 'python'
to var spawnCmd = (this.virtualenv ? this.virtualenv + '/bin/' : '') + 'python3'
Feature request: it would be nice to have easy way within Node Red to select the Python interpreter to be used. At the moment this goes by default to Python 2.7 rather than Python 3.5.
The manual way to do this is by changing line 18 of PythonshellNode.js to replace 'python' with python3.5 (or python3) i.e. change:
var py = this.spawn('python', [this.pyfile, msg]);
to:
var py = this.spawn('python3.5', [this.pyfile, msg]);
The text was updated successfully, but these errors were encountered: