Import Python packages in code node

Describe the problem/error/question:

I struggle to get started with the code node using Python. I follow this template but can’t importe other packages than numpy. I have the feeling to be missing something obvious but can’t see what…

What is the error message (if any)?

Nothing, the workflow just ends with no output to the code node

Please share your workflow

Share the output returned by the last node

no output !

Information on your n8n setup

  • n8n version: 1.72.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

hello @Olivi

That’s because the numpy is in the default packages. I don’t know if it’s possible to use external packages within python

Thanks @barn4k

According to this link scikit-learn is included by default in Pyodide, so my understanding is that all the packages in the list you provided are accessible directly.

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