# How to run Python Script?

**URL:** <https://forum.uipath.com/t/how-to-run-python-script/190903>\
**Category:** Help\
**Tags:** question, studio, python, activities\
**Created:** [February 4, 2020, 7:37am UTC](https://forum.uipath.com/t/how-to-run-python-script/190903 "2020-02-04T07:37:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Rahul\_Pasupuleti](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rahul_pasupuleti/32/62938_2.png) [@Rahul\_Pasupuleti](https://forum.uipath.com/u/Rahul_Pasupuleti)\
**Post date:** [February 4, 2020, 7:45am UTC](https://forum.uipath.com/t/how-to-run-python-script/190903/3 "2020-02-04T07:45:40Z")

</div>

Please go through the following link :

> [@How to run pyhton script in uipath](https://forum.uipath.com/t/how-to-run-pyhton-script-in-uipath/125745/20):
>
> Hi Divya, I have gone through the code and script. You cannot directly run a python script through UiPath. It isn’t a reliable approach or a stable approach to follow. Python script: The script has to be in form of a function. Example : def(a,b): return(a+b) I have transformed your script into a function. It requires two inputs. Inp PDF file and Op Excel file. Pass them in the UiPath program and it’ll run. Also, make sure you have the necessary libraries installed. Inside Python Scope…

---

_[View the full topic](https://forum.uipath.com/t/how-to-run-python-script/190903)._
