# How to run a python script that is on my windows machine in NODE RED?

**URL:** <https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193>\
**Category:** General\
**Created:** [19 January 2026 17:08 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193 "2026-01-19T17:08:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joualm](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@joualm](https://discourse.nodered.org/u/joualm)\
**Post date:** [19 January 2026 17:08 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193/1 "2026-01-19T17:08:44Z")

</div>

I have a python script that uses some libraries that works only on windows ! I tried invoking this script from node red but it isn't recognized ! If anyone Has solved this problem before , i would be grateful ! thank you in advance .

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [19 January 2026 17:45 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193/2 "2026-01-19T17:45:42Z")

</div>

Welcome to the forum.  
Is Node Red running on the same machine as the script?

---

<div class="post-metadata">

**Author:** ![joualm](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@joualm](https://discourse.nodered.org/u/joualm)\
**Post date:** [20 January 2026 08:22 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193/3 "2026-01-20T08:22:22Z")

</div>

Thank you And Sorry for Late Answer , yes  
running on the same machine .

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 January 2026 10:16 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193/4 "2026-01-20T10:16:48Z")

</div>

Make sure you specify the full path to the script and to the Python command.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [20 January 2026 10:54 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193/5 "2026-01-20T10:54:56Z")

</div>

Hi @joualm - welcome to the forum

> [@joualm](#):
>
> I tried invoking this script from node red

How are you doing this? Exec node? a contrib node? Something else?

> [@joualm](#):
>
> but it isn't recognized

What exactly happens (show logs / debug etc)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 April 2026 10:55 UTC](https://discourse.nodered.org/t/how-to-run-a-python-script-that-is-on-my-windows-machine-in-node-red/100193/6 "2026-04-20T10:55:57Z")

</div>

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