# How can a new python library be added such as ast or astor in the python interpreter?

**URL:** <https://discourse.slicer.org/t/how-can-a-new-python-library-be-added-such-as-ast-or-astor-in-the-python-interpreter/5871>\
**Category:** Development\
**Created:** [February 21, 2019, 4:36pm UTC](https://discourse.slicer.org/t/how-can-a-new-python-library-be-added-such-as-ast-or-astor-in-the-python-interpreter/5871 "2019-02-21T16:36:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [February 21, 2019, 4:49pm UTC](https://discourse.slicer.org/t/how-can-a-new-python-library-be-added-such-as-ast-or-astor-in-the-python-interpreter/5871/2 "2019-02-21T16:49:32Z")

</div>

try this solution [Module for Internal Dosimetry in Nuclear Medicine](https://discourse.slicer.org/t/module-for-internal-dosimetry-in-nuclear-medicine/3317/14?u=alex_vergara)

basically at the end do

```auto
install_and_import('astor')

```

---

_[View the full topic](https://discourse.slicer.org/t/how-can-a-new-python-library-be-added-such-as-ast-or-astor-in-the-python-interpreter/5871)._
