# Running external python 3 script

**URL:** <https://forum.inductiveautomation.com/t/running-external-python-3-script/95800>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 10, 2024, 2:10pm UTC](https://forum.inductiveautomation.com/t/running-external-python-3-script/95800 "2024-09-10T14:10:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salvatore\_Maniaci](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@Salvatore\_Maniaci](https://forum.inductiveautomation.com/u/Salvatore_Maniaci)\
**Post date:** [September 10, 2024, 2:10pm UTC](https://forum.inductiveautomation.com/t/running-external-python-3-script/95800/1 "2024-09-10T14:10:00Z")

</div>

I have a python 3 script that processes an image file coming from a robot camera. I want the python 3 script to run either on my machine or in the gateway when I recieve a photo from the robot. The script processes information from the photograph. The python 3 script has many imports, some of which use C libraries. Please help me.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 10, 2024, 2:19pm UTC](https://forum.inductiveautomation.com/t/running-external-python-3-script/95800/2 "2024-09-10T14:19:28Z")

</div>

Try searching the forum for `external python script`, and please don't post your question in multiple threads.

[Running external python script in Ignition - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/running-external-python-script-in-ignition/70769)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 10, 2024, 2:56pm UTC](https://forum.inductiveautomation.com/t/running-external-python-3-script/95800/3 "2024-09-10T14:56:02Z")

</div>

This other thread:

> [@Running external python script from button event](https://forum.inductiveautomation.com/t/running-external-python-script-from-button-event/71028/4):
>
> From what I have tried on this forum, python scripts must be stored in the gateway to be ran, and in order to run those scripts, the python exe needs to be stored in the gateway as well. Because you are using python 3, you would have to install python 3 in the gateway. I still havent figured out how to do this.

---

<div class="post-metadata">

**Author:** ![Salvatore\_Maniaci](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@Salvatore\_Maniaci](https://forum.inductiveautomation.com/u/Salvatore_Maniaci)\
**Post date:** [September 10, 2024, 7:51pm UTC](https://forum.inductiveautomation.com/t/running-external-python-3-script/95800/4 "2024-09-10T19:51:07Z")

</div>

I just spun up a web server and made my own api. Then I can run the program on the web server and grab data with an API call. For python 3 I used Flask for the API and I used conda for the environment.
