Install Pip Module

Hi,

Describe the problem/error/question

How do I install the pip install n8n for Python using the n8n workflow editor?

What is the error message (if any)?

Error: ModuleNotFoundError: No module named ‘n8n’

at PythonSandbox.getPrettyError (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/PythonSandbox.js:69:20)
at PythonSandbox.runCodeInPython (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/PythonSandbox.js:56:24)
at PythonSandbox.runCodeEachItem (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/PythonSandbox.js:26:33)
at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Code/Code.node.js:134:26)
at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:670:19)
at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:652:53

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Problem in node ‘Code‘

ModuleNotFoundError: No module named ‘n8n’

Information on your n8n setup

  • n8n version:
    version #1.16.0

Regards,
Hal

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Sorry I do not understand the question. What do you want to do? There is no n8n Python module.

Jan,

Does Python pip install n8n CLI Terminal command module install support for the N8N online host?

See the Python node:

2023-11-24 13.10.03 cloudflareapp.app.n8n.cloud 6f9b4a3ad527

Regards,
Hal

Hi @DevCED-Team, by N8N online host do you mean n8n cloud? As per our email conversation you will not be able to deploy a custom n8n image including specific pip packages on n8n cloud I am afraid.

For a self-hosted n8n instance you could build a custom n8n image including pip packages as described over here.

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