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

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!

1 Like

You can bundle Python packages in your extension package (as it is done for example in SlicerJupyter extension) or in your custom Slicer application (as it is done in Slicer core).