# Invoke python code

**URL:** <https://discourse.openiap.io/t/invoke-python-code/377>\
**Category:** OpenRPA\
**Created:** [March 27, 2023, 6:18am UTC](https://discourse.openiap.io/t/invoke-python-code/377 "2023-03-27T06:18:30Z")\
**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:** [March 27, 2023, 9:36am UTC](https://discourse.openiap.io/t/invoke-python-code/377/2 "2023-03-27T09:36:57Z")

</div>

The error say you forgot to install openpyxml.  
See here on how to do that

> [@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/invoke-python-code/377)._
