Running Python Scripts in Linux Ubuntu Error

Describe the issue/error/question

I am trying to run some python scripts with the execute command node on n8n, it worked in windows, but now in Linux I am having this error.

What is the error message (if any)?

bh/sh: python not found

Please share the workflow

We don’t have any workflow, the tests were with just the execute command node and some trigger.

Information on your n8n setup

  • n8n version:
    The last one.
  • Database you’re using (default: SQLite):
    SQLite
  • Running n8n with the execution process [own(default), main]:
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]:
    Docker

I am pretty new at n8n, sorry if this is something simple.

Hi @Leonardo_Alcantara, welcome to the community!

Python isn’t available in the default docker images provides by n8n, so you would need to install it first. You could check out the Dockerfile @dakota2gen built over here to work around this.

1 Like

hi @Leonardo_Alcantara, i have same case with you before,
to solve my case before, i am using N8n install with npm in my ubuntu server.
so my Execute Command Node can read directory in my Ubuntu server and run python script using python command.

maybe it can work for you too

1 Like

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