Node-red python function

I have a problem but i'm unable to find the solution.
Using the python function i do
from pigpio_encoder.rotary import Rotary
But i get the error : no module named pigpio_encoder,
I have this module if i import it from python shell i have no problem to run it
sorry for my stupid question but it's the first time that i use node red

Hello i have solved doing this:
import sys
Regards Luca