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.
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.