# How to Include Python Libraries Offline (without pip) in a Custom Slicer Application?

**URL:** <https://discourse.slicer.org/t/how-to-include-python-libraries-offline-without-pip-in-a-custom-slicer-application/39484>\
**Category:** Development\
**Created:** [October 2, 2024, 4:02am UTC](https://discourse.slicer.org/t/how-to-include-python-libraries-offline-without-pip-in-a-custom-slicer-application/39484 "2024-10-02T04:02:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![park](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/park/32/5717_2.png) [@park](https://discourse.slicer.org/u/park)\
**Post date:** [October 2, 2024, 4:02am UTC](https://discourse.slicer.org/t/how-to-include-python-libraries-offline-without-pip-in-a-custom-slicer-application/39484/1 "2024-10-02T04:02:39Z")

</div>

Hi all,

I’m currently developing a custom application using Slicer. At the moment, I’m installing the necessary Python libraries via `pip` (using `slicer.util.pip_install('library')`).

However, I’m looking for a way to include these Python libraries in the custom application package for offline use. Does anyone have suggestions or methods to package these libraries for offline integration?

Any advice would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 2, 2024, 12:40pm UTC](https://discourse.slicer.org/t/how-to-include-python-libraries-offline-without-pip-in-a-custom-slicer-application/39484/2 "2024-10-02T12:40:54Z")

</div>

You can bundle Python packages in your extension package (as it is done for example in [SlicerJupyter extension](https://github.com/Slicer/SlicerJupyter/blob/master/SuperBuild/External_python-packages.cmake)) or in your custom Slicer application ([as it is done in Slicer core](https://github.com/Slicer/Slicer/blob/9c0754c6741e8127c38691895d452d389ee3cd03/SuperBuild/External_python-dicom-requirements.cmake)).
