# Invoke python script without python installed

**URL:** <https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324>\
**Category:** Studio\
**Tags:** tools, question, studio, python, activities\
**Created:** [November 22, 2024, 9:30am UTC](https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324 "2024-11-22T09:30:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lska](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@lska](https://forum.uipath.com/u/lska)\
**Post date:** [November 22, 2024, 9:30am UTC](https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324/1 "2024-11-22T09:30:52Z")

</div>

**Hello everyone!**

I’ve created an automation using the **Invoke Python** activity. The challenge is that this automation needs to run on virtual machines (VMs) where Python cannot be installed.

While researching solutions, I came across the **python.included** library, but I encountered difficulties in setting it up.

My question is:

- Is it possible to include a Python compiler directly within the project files?
- Alternatively, can Python activities be executed without installing Python on the machine?

Any guidance or suggestions would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [November 22, 2024, 9:54am UTC](https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324/2 "2024-11-22T09:54:25Z")

</div>

@lska

Welcome to the community

You cannot run python without installing

 ![A note stating that the required Python version must be installed on the machine to run the process, and the guide is based on Python 3.12's default installation path. (Captioned by AI)](https://global.discourse-cdn.com/uipath/original/4X/0/2/3/0238d5f58fa2ddf600173d273ced10a875fe29ab.jpeg)

> **[Activities - Invoking a Python Script](https://docs.uipath.com/activities/other/latest/developer/invoking-a-python-script)**
>
> The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...

Cheers

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [November 22, 2024, 10:17am UTC](https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324/3 "2024-11-22T10:17:48Z")

</div>

To add to this - in theory, I suppose you could use Coded Workflows functionality and the above mentioned python.included library, although I didn’t try it myself so I am not sure how far you can get there.

---

<div class="post-metadata">

**Author:** ![lska](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@lska](https://forum.uipath.com/u/lska)\
**Post date:** [November 22, 2024, 10:30am UTC](https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324/4 "2024-11-22T10:30:13Z")

</div>

Thanks for feedback! I’ll dig into it 🙂

---

<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 22, 2024, 10:32am UTC](https://forum.uipath.com/t/invoke-python-script-without-python-installed/781324/5 "2024-11-22T10:32:13Z")

</div>

Hi @lska,

This is possible either with Invoke Python activity or via PowerShell or start process activities.

This post goes over the three approaches to integrate Python into your UiPath project.

> [@Python Virtual Environment](https://forum.uipath.com/t/python-virtual-environment/400025/2):
>
> Hi @Donnas, I agree that this could be really good to support out of the box. However, if you want to run the python scope from a python installed in a shared drive/VM / USB stick you can look at this workaround here : Via a shared drive : [Python integration with different vm's - #7 by jeevith](https://forum.uipath.com/t/python-integration-with-different-vms/386337/7) Via a USB : [How to run python script in UiPath without installing python? - #4 by jeevith](https://forum.uipath.com/t/how-to-run-python-script-in-uipath-without-installing-python/271827/4) The point being, UiPath’s invoke python scope does not care where python is installed but it wants to see a ful…

As suggested in the other post. Python need not be installed in the system. All the modules you use need to be installed (via pip or conda) prior to integrating it with Python.

You can also look at using Embedded python, which is a standalone portable version of Python, no installation required.
