Node.js child_process.spawn is unable to launch python process
问题 I have written following code to spawn a python process. I am able to launch other processes but not python. I tried reinstalling python and node but still no luck. I am able to run python from command line. Please help. const spawn = require("child_process").spawn; var process = spawn('python',[ 'D:/python_script.py']); var responseData = ""; process.stdout.setEncoding('utf-8'); process.stdout.on('data', function (data){ responseData += data.toString(); }); process.stdout.on('end',function