Guys, I keep getting error 9009 with n8n-nodes-python in my local deployment of n8n, but my local python environment configuration is fine!

Describe the problem/error/question

What is the error message (if any)?

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

Information on your n8n setup

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

The 9009 error usually means that n8n couldn’t find or run the Python executable. Even if your terminal is set up correctly, there might be a few hidden issues:

What might be going wrong:

1. Python isn’t in the PATH for the environment where n8n is running
Even if python or python3 works in your terminal, n8n might be running as a different user or shell without access to that PATH.

:point_right: Try running this in the same terminal you use to launch n8n:
which python
or
python --version
If it throws an error, that’s your problem.

2. Wrong executable name in the node
Some systems use python3 instead of python. In the Python node, change the execution command field to match your system, like:

  • python3 (common in Linux/macOS)
  • python (on some Windows setups or custom environments)

3. Docker doesn’t have Python installed
If you’re running n8n via Docker and didn’t build a custom image with Python inside, it won’t work. The default n8n image doesn’t include Python.

:point_right: Fix: create a custom Docker image based on n8nio/n8n and add Python like this:
Dockerfile
FROM n8nio/n8n

RUN apt-get update && apt-get install -y python3 python3-pip

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