Adding python module

Describe the question

I would like to add a python module, quiffen, so that I can use later in Code Function node.

What is the error message (if any)?

No error but I have tried multiple ways and I have not been successful. This is the Python that I used to check whether the Code function node can recognize the new python module.

import sys, pkgutil

modules = [m.name for m in pkgutil.iter_modules()]
out = {
    "executable": sys.executable,
    "version": sys.version,
    "path": sys.path,
    "modules": modules
}
return [{"json": out}]

Please share your workflow

No workflow.

hare the output returned by the last node

Information on your n8n setup

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

Hey @yun14u hope all is good. Welcome to the community,

Per this document:

n8n added Python support in version 1.0. It doesn’t include a Python executable. Instead, n8n provides Python support using Pyodide, which is a port of CPython to WebAssembly. This limits the available Python packages to the Packages included with Pyodide. n8n downloads the package automatically the first time you use it.

much appreciated. please close this.