# How to run Python code

**URL:** <https://forum.uipath.com/t/how-to-run-python-code/25527>\
**Category:** Help\
**Tags:** python, activities\
**Created:** [March 14, 2018, 4:37am UTC](https://forum.uipath.com/t/how-to-run-python-code/25527 "2018-03-14T04:37:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MahalingPatil](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MahalingPatil](https://forum.uipath.com/u/MahalingPatil)\
**Post date:** [March 14, 2018, 4:37am UTC](https://forum.uipath.com/t/how-to-run-python-code/25527/1 "2018-03-14T04:37:12Z")

</div>

How to execute python code in UI Path

---

<div class="post-metadata">

**Author:** ![ovi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ovi/32/21072_2.png) [@ovi](https://forum.uipath.com/u/ovi)\
**Post date:** [March 14, 2018, 4:18pm UTC](https://forum.uipath.com/t/how-to-run-python-code/25527/2 "2018-03-14T16:18:05Z")

</div>

It’s being considered, for now you can use only [vb.net](http://vb.net) in Invoke code:

> [@Run Python Code](https://forum.uipath.com/t/run-python-code/1560/17):
>
> Reconsidering. We entered first time in an Orchestrator API discussion.

---

<div class="post-metadata">

**Author:** ![oddrationale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/oddrationale/32/2035_2.png) [@oddrationale](https://forum.uipath.com/u/oddrationale)\
**Post date:** [March 14, 2018, 4:33pm UTC](https://forum.uipath.com/t/how-to-run-python-code/25527/3 "2018-03-14T16:33:15Z")

</div>

If you’ve created a Python script that you would like to integrate with your automation, what I’ve done is bundle the Python script into an .exe using [pyinstaller](http://www.pyinstaller.org/). Then you can run the script using the Run process activity.

---

<div class="post-metadata">

**Author:** ![sharathraju489](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sharathraju489/32/9047_2.png) [@sharathraju489](https://forum.uipath.com/u/sharathraju489)\
**Post date:** [November 28, 2019, 12:52pm UTC](https://forum.uipath.com/t/how-to-run-python-code/25527/4 "2019-11-28T12:52:18Z")

</div>

Here is a detailed article on that 🙂

> **[How To Execute Python Script – In UiPath](https://excelcult.com/how-to-execute-python-script-in-uipath/)**
>
> We might sometimes think of writing python scripts to automate few tasks or to achieve some desired results. let’s see how to do that…!!! Mandatory: UiPath.Python.Activities package Exa…
