Python runner unavailable

Python runner unavailable: Virtual environment is missing from this system at ExecuteContext.execute

Installed n8n on AWS EKS with a docker Image
Docker file 
*****
FROM n8nio/n8n:2.0.3
USER root
RUN apk add --no-cache python3 py3-pip aws-cli git jq bash
RUN pip3 install --break-system-packages boto3 PyYAML
USER node
****

Environment variables
DB_TYPE=sqlite
N8N_PROTOCOL=http
N8N_PORT=5678
N8N_RUNNERS_ENABLED=true
N8N_RUNNERS_MODE=internal
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
N8N_EDITOR_BASE_URL=https://n8n.ccg-.net
WEBHOOK_URL=https://n8n.ccg-.net/
N8N_TEMPLATES_ENABLED=true
EXECUTIONS_MODE=regular
EXECUTIONS_DATA_SAVE_ON_ERROR=all
EXECUTIONS_DATA_SAVE_ON_SUCCESS=all
EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=true
EXECUTIONS_DATA_SAVE_ON_PROGRESS=true
EXECUTIONS_DATA_PRUNE=false
N8N_COMMUNITY_PACKAGES_ENABLED=false
N8N_SECURE_COOKIE=false
N8N_BASIC_AUTH_ACTIVE=false
AWS_STS_REGIONAL_ENDPOINTS=regional
AWS_DEFAULT_REGION=us-east-1
AWS_REGION=us-east-1
AWS_ROLE_ARN=arn:aws:iam::<>:role/n8n-sso-role
AWS_WEB_IDENTITY_TOKEN_FILE=/var/run/secrets/eks.amazonaws.com/serviceaccount/token

What is the error message (if any)?

Error: Python runner unavailable: Virtual environment is missing from this system at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_8da18263ca0574b0db58d4fefd8173ce/node_modules/n8n-nodes-base/nodes/Code/Code.node.ts:159:11) at WorkflowExecute.executeNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1045:31) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1226:22) at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1662:38 at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_ec37920eb95917b28efaa783206b20f3/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2274:11

Please share your 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:

hi @mnk21

Installing Python inside the container is not enough for the Code in Python node.

In n8n 2.x, this node requires a Python runner with a managed virtual environment, and that environment is missing in your setup — which is exactly what the error message indicates.

Even though python3 and pip are installed, the native Python runner is not initialized just by adding Python to the image.

Your options are:

  • Use JavaScript in the Code node (simplest)
  • Run Python via Execute Command / external service
  • Set up a supported Python runner / external runner per the n8n docs