# Set PYTHONPATH environment

**URL:** <https://forum.inductiveautomation.com/t/set-pythonpath-environment/38451>\
**Category:** Ignition\
**Created:** [September 7, 2020, 1:48pm UTC](https://forum.inductiveautomation.com/t/set-pythonpath-environment/38451 "2020-09-07T13:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [September 7, 2020, 1:59pm UTC](https://forum.inductiveautomation.com/t/set-pythonpath-environment/38451/2 "2020-09-07T13:59:27Z")

</div>

Hi Patricia,

Unfortunately, the Python used in Ignition is actually Jython 2.7 (for Ignition v8.0).

That means you cannot run a Python library that’s written for python 3, and you cannot run a Python library that needs C(++) bindings. So you will not be able to use the pydim library directly.

Your two options are:

- Use pyDIM as an external program, and communicate via the OS (i.e. [https://stackabuse.com/executing-shell-commands-with-python/](https://stackabuse.com/executing-shell-commands-with-python/)). This is probably the faster way to implement, but quite hacky so probably slow and unreliable.
- Use the Java bindings, and create your own Ignition module. This is probably more stable, but also more work to implement.

---

_[View the full topic](https://forum.inductiveautomation.com/t/set-pythonpath-environment/38451)._
