How to install libraries for python in node-red on CtrlX

I am trying to execute a Python script using Node-RED on the CtrlX platform. I am able to run scripts that don't require any external libraries. However, when I try to run a script that uses external libraries, such as pandas, it doesn’t work. I can run the same script without issues using the IDE app on CtrlX. I have installed the required libraries for the Python runtime app, but it seems that Node-RED is using a different Python interpreter. The Node-RED code is stored in "flows.json." The Python file "test.py" uses external libraries and throws an error when trying to import them. However, the Python file "print.py" works fine in node-red. What can I do to solve this?

test.txt
2.85KB
flows.json
13.25KB
print.txt
141B
18 replies