Unable to run a Python script in Node.js

Hi, I have a Node.js backend service hosted in render.com. This also has a python script which will run if there is an API call to it and return some results in json. I am unable to run it because whenever I try to run it, I get an error saying “No module named pandas”. I am installing all the required dependencies (including Pandas) during the build step.

I am running Python inside of Node.js using the python-shell npm package.

Hi,

Node is available on all Native Environments, so you’d need to use a Python Native Environment if you wanted to run Python scripts, which would still allow you to configure Node.

Alan

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