# LXML phyton library need to know how to import into ignition

**URL:** <https://forum.inductiveautomation.com/t/lxml-phyton-library-need-to-know-how-to-import-into-ignition/10085>\
**Category:** General Discussion\
**Created:** [June 2, 2015, 5:34pm UTC](https://forum.inductiveautomation.com/t/lxml-phyton-library-need-to-know-how-to-import-into-ignition/10085 "2015-06-02T17:34:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmonter](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@jmonter](https://forum.inductiveautomation.com/u/jmonter)\
**Post date:** [June 2, 2015, 5:34pm UTC](https://forum.inductiveautomation.com/t/lxml-phyton-library-need-to-know-how-to-import-into-ignition/10085/1 "2015-06-02T17:34:16Z")

</div>

Hi All,  
I need to use the lxml library ([pypi.python.org/pypi/lxml/3.4.4](https://pypi.python.org/pypi/lxml/3.4.4)) but don’t know how to incorporate the library into ignition. Do I have to compile the library externally than copy the result to the ignition “\Inductive Automation\Ignition\user-lib\pylib”?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [June 2, 2015, 7:20pm UTC](https://forum.inductiveautomation.com/t/lxml-phyton-library-need-to-know-how-to-import-into-ignition/10085/2 "2015-06-02T19:20:28Z")

</div>

Hi jmonter,

You can install third-party Python libraries in Ignition by putting them in this directory: C:\Program Files\Inductive Automation\Ignition\user-lib\pylib

More information about this is here: [perfectabstractions.com/blog … on-modules](http://www.perfectabstractions.com/blog/new-scripting-features-in-ignition-77-part-1#external-python-modules)

I did not see a version of lxml that works with Python 2.5 which is what Ignition uses. Lack of Python library support for 2.5 is a big reason to upgrade Python in Ignition to 2.7. You can vote for that improvement here: [ideas.inductiveautomation.com/fo … jython-2-7](http://ideas.inductiveautomation.com/forums/255378-ignition-features-and-ideas/suggestions/7879431-upgrade-ignition-to-use-jython-2-7)

If you can’t get lxml to work in Ignition then you could use a different Python XML parsing solution such as xml.sax or xml.dom.

Best,
