# N8N + HOSTINGER + Exec command + Script Python

**URL:** <https://community.n8n.io/t/n8n-hostinger-exec-command-script-python/121763>\
**Category:** Questions\
**Created:** [May 27, 2025, 2:30pm UTC](https://community.n8n.io/t/n8n-hostinger-exec-command-script-python/121763 "2025-05-27T14:30:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Contact\_TC\_Ltd](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/contact_tc_ltd/32/53191_2.png) [@Contact\_TC\_Ltd](https://community.n8n.io/u/Contact_TC_Ltd)\
**Post date:** [May 27, 2025, 2:30pm UTC](https://community.n8n.io/t/n8n-hostinger-exec-command-script-python/121763/1 "2025-05-27T14:30:18Z")

</div>

Hi,

I try to execute a python script in my Exec command Node.  
Unfortunately, it does not work.

Content of python script :  
print(“Hello”)

## Describe the problem/error/question

The error message  
Command failed: python3 /home/user/hello.py /bin/sh: python3: not found

The script is wowrking well on the server.

## Please share your workflow

## Share the output returned by the last node

Command failed: python3 /home/user/hello.py /bin/sh: python3: not found

## Information on your n8n setup

- **n8n version: 1.95 Self Hosted on a HOSTINGER Server. n8n**
- **Database (default: SQLite): n/a**
- **n8n EXECUTIONS\_PROCESS setting (default: main): n/a**
- **Running n8n via (Docker): yes**
- **Operating system: Ubuntu 24.04**

Thank you for your help

---

<div class="post-metadata">

**Author:** ![hubschrauber](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hubschrauber/32/46788_2.png) [@hubschrauber](https://community.n8n.io/u/hubschrauber)\
**Post date:** [May 27, 2025, 3:52pm UTC](https://community.n8n.io/t/n8n-hostinger-exec-command-script-python/121763/2 "2025-05-27T15:52:12Z")

</div>

Python is not installed in the n8n container image. If you want/need to do this, you would have to build and use a derivative of the n8n image with python added to it with a Dockerfile like this:

```auto
ARG tag=latest
FROM n8nio/n8n:$tag
USER root
RUN apk update
RUN apk add python3
USER node

```

---

<div class="post-metadata">

**Author:** ![Contact\_TC\_Ltd](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/contact_tc_ltd/32/53191_2.png) [@Contact\_TC\_Ltd](https://community.n8n.io/u/Contact_TC_Ltd)\
**Post date:** [May 28, 2025, 7:39am UTC](https://community.n8n.io/t/n8n-hostinger-exec-command-script-python/121763/3 "2025-05-28T07:39:50Z")

</div>

Thank you for your help.

I used it but some issue. I had to use another way by updating directly the n8n image with python.

docker exec -u root -it root-n8n-1 sh -c “apk add --no-cache python3 py3-pip”

docker exec -u root -it root-n8n-1 sh -c "  
python3 -m venv /tmp/n8n-python &&   
. /tmp/n8n-python/bin/activate &&   
pip install pandas &&   
deactivate  
"

Now, I’m looking how to access to /home/node/ from the n8n node.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [June 4, 2025, 7:40am UTC](https://community.n8n.io/t/n8n-hostinger-exec-command-script-python/121763/4 "2025-06-04T07:40:03Z")

</div>

Closed on June 4, 2025, 7:40am UTC

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