Question: Python Native Runtime and import Limitations after Upgrade
Hi everyone,
I’ve successfully upgraded to n8n version > 1.113.2, which includes the Python Native Runtime and the new Data Table feature. However, I’ve noticed that I still cannot use import statements inside the Python node.
So, I’m wondering:
Did I miss some configuration step?
Or is n8n currently restricting import usage for security reasons, as mentioned in the documentation?
Additionally, once this limitation is lifted, will it be possible to:
Run pip install <library> inside the Execute Command node,
And then use that library (e.g., selenium or playwright) directly inside a Python node for web automation or simulation tasks?
Thanks a lot for the amazing work - I’m really excited about the new Python native support and can’t wait to explore more advanced use cases!
I encountered the same question.
I try to modify /etc/n8n-task-runners.json like this:
“N8N_RUNNERS_STDLIB_ALLOW”: “os,sys”,
“N8N_RUNNERS_EXTERNAL_ALLOW”: “pandas,openpyxl”
I would also appreciate instructions on how to allow specific Python packages in the n8n hosted environment (I’m not sure I have access to modify env vars when n8n hosts).
At this point, I’ve spend over four nights getting external python libraries to work. However, it still doesn’t. For some reason the mentioned solution in this post won’t work for me. I hope the n8n team can make this process a lot easier (e.g. through env vars) in one of the coming builds.
I’m not sure how to tag the n8n team to notice the requests here, but I am posting this to keep this conversation alive as well.
Getting strong python support for both self-hosted and n8n hosted is very powerful, but we need ways to securely manage both types of environments to keep python going.