# Access slicer modules and libraries in pycharm

**URL:** https://discourse.slicer.org/t/access-slicer-modules-and-libraries-in-pycharm/2765
**Category:** Support
**Created:** [May 6, 2018, 8:27pm UTC](https://discourse.slicer.org/t/access-slicer-modules-and-libraries-in-pycharm/2765 "2018-05-06T20:27:15Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)
#### Post date: [May 15, 2018, 7:19pm UTC](https://discourse.slicer.org/t/access-slicer-modules-and-libraries-in-pycharm/2765/3 "2018-05-15T19:19:08Z")

</div>

> [@lassoan](#):
>
> it should not be too difficult to make the core MRML library and some other parts loadable as well

There may still be some other modules we need to exclude, but the following PR allows to safely `import slicer` in the regular python(.exe) binary included with Slicer:

> <https://github.com/Slicer/Slicer/issues/945>
>
> \_This issue was created automatically from an original \[Mantis Issue\](https://ma…ntisarchive.slicer.org/view.php?id=945). Further discussion may take place here.\_

However, note that the `python` binary must either be started from the launcher or from a shell with with the [necessary environment variables](https://discourse.slicer.org/t/python-real-different-from-python-interpreter/2496/5).

---

_[View the full topic](https://discourse.slicer.org/t/access-slicer-modules-and-libraries-in-pycharm/2765)._
