Activating an virtual environment from python in nodejs
问题 I have following project on a raspberry pi 4: I created a face recognition script in python which needs an virtual enviroment to run. The script prints out the person which has been detected. In NodeJS I want to receive the answer by running the script in node (minified version): const http = require("http"); const server = http.createServer((req, res) => { var spawn = require('child_process').spawn, py = spawn('python', ['faceReg.py'],) py.stdout.on('data', function(data){ console.log('Data: