# How to run python script in UiPath without installing python?

**URL:** <https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827>\
**Category:** Help\
**Tags:** question, studio, python, activities\
**Created:** [November 24, 2020, 10:32am UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827 "2020-11-24T10:32:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sufyant](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sufyant/32/119310_2.png) [@sufyant](https://forum.uipath.com/u/sufyant)\
**Post date:** [November 24, 2020, 10:32am UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/1 "2020-11-24T10:32:35Z")

</div>

Hi, is it possible to run python scripts in UiPath studio without installing python?

---

<div class="post-metadata">

**Author:** ![jeevith](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jeevith/32/288449_2.png) [@jeevith](https://forum.uipath.com/u/jeevith)\
**Post date:** [November 24, 2020, 10:52am UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/2 "2020-11-24T10:52:16Z")

</div>

Hi @sufyant

I have not exprimented with it yet, but I think this should be logically possible `*`.

\ ***May work**  
[Ifyou dont want python in your system but are ok running python in USB.](https://www.reddit.com/r/Python/comments/9opd85/portable_python_on_usb/) All UiPath wants to know is where it can find the python.exe. Then it calls the python.exe to run the `.py` file in a command promt environment. The result of the run is a python object and then the user needs to convert the Python object to a UiPath (.Net Type) within UiPathStudio.

**Will not run**  
But if your question is: _I dont want to install python at all, will UiPath run my python script?_, then the answer is No. UiPath needs access to the python.exe in one or another path in your system or network.

Hope this clears some doubts.

---

<div class="post-metadata">

**Author:** ![Adrian\_Star](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adrian_star/32/284169_2.png) [@Adrian\_Star](https://forum.uipath.com/u/Adrian_Star)\
**Post date:** [November 24, 2020, 3:46pm UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/3 "2020-11-24T15:46:58Z")

</div>

UiPath needs a python compiler so install it is required.

---

<div class="post-metadata">

**Author:** ![jeevith](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jeevith/32/288449_2.png) [@jeevith](https://forum.uipath.com/u/jeevith)\
**Post date:** [November 25, 2020, 5:38am UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/4 "2020-11-25T05:38:52Z")

</div>

Hi @sufyant and @Adrian_Star,

**It is possible to run python script without installing it on your local system**. My test included python 3.6.8 files in a USB drive and **all traces of python removed from my local machine**.

Then I ran a simple workflow calling a python function and I get the required output in UiPath. So as I said in the earlier reply, UiPath just wants to know where your python.exe file is and uses the path in a terminal environment in the background. The result is then forwarded to UiPath.

[pythonUSBOnly.zip](https://forum.uipath.com/uploads/short-url/qC2nkcf0JR9GfPHvz4VvIzr3kse.zip) (2.1 KB)

**Testing in cmd**  
Here I manually provide the USB python path and run the same .py with a print command to show how UiPath does the operation in the background.  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/f/9/f95213ee930cf091ef4d805914dbd638232af393.png)

Files / Folder on the USB (I obtained these files and folders [from an earlier installation](https://www.python.org/downloads/release/python-368/) location and just copied all of them to the USB drive):  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/a/0/a00878f6fda561aba76b1896a746e593d9d6b4c4.png)

Cheers!

---

<div class="post-metadata">

**Author:** ![Adrian\_Star](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adrian_star/32/284169_2.png) [@Adrian\_Star](https://forum.uipath.com/u/Adrian_Star)\
**Post date:** [November 25, 2020, 6:28am UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/5 "2020-11-25T06:28:03Z")

</div>

Cool! I did’t pursue this python topic. It’s an interesting experiment!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [November 28, 2020, 6:28am UTC](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/6 "2020-11-28T06:28:03Z")

</div>

Closed on November 28, 2020, 6:28am UTC

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