Running Python with n8n

Is there a way to add external libraries permanently? Every time I restart my docker container, the requests library gets lost and I’m greeted with this error.

After I successfully install the library again with pip3 install requests in an execute command node, I get the following warning,

WARNING: The script normalizer is installed in '/home/node/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. WARNING: You are using pip version 21.1.1; however, version 21.3.1 is available. You should consider upgrading via the '/usr/bin/python3.8 -m pip install --upgrade pip' command.

I think they are related? So how do I fix this? Thanks :slight_smile:

1 Like