# Python Invoke Code Error

**URL:** <https://discourse.openiap.io/t/python-invoke-code-error/617>\
**Category:** OpenRPA\
**Created:** [June 23, 2023, 7:50pm UTC](https://discourse.openiap.io/t/python-invoke-code-error/617 "2023-06-23T19:50:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [June 23, 2023, 8:12pm UTC](https://discourse.openiap.io/t/python-invoke-code-error/617/2 "2023-06-23T20:12:43Z")

</div>

please don’t make multiple post about the same thing.

You need to install the modules you need first.  
OpenRPA by default uses python embedded, you can install packages using the pip installa activity or see this post for info about how do do it from command line

> [@Using InvokeCode for python code](https://discourse.openiap.io/t/using-invokecode-for-python-code/271/2):
>
> Hey. OpenRPA uses python embedded, it allows for complete control over the python runtime, that is needed to map variables in/out of python. Therefor it cannot see packages you installed in your “own” python. So you need to use the pip install activity or run pip install from C:\Users\%USERNAME%\AppData\Local\python-3.7.3-embed-amd64 The draw back is, the only python 3.7 is suppurted. If you have a supported version of python 3.7 in your PATH you can go to settings → recorder plugins → Scripti…

---

_[View the full topic](https://discourse.openiap.io/t/python-invoke-code-error/617)._
