How to run python script in UiPath without installing python?

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 (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

Files / Folder on the USB (I obtained these files and folders from an earlier installation location and just copied all of them to the USB drive):
image

Cheers!

2 Likes