import slicer in a local python/virtualenv and load correctly image orientation

Is it possible to use slicer’s python api in a custom made program? Specifically, am I interested in the dicom-image loading due to the correctly dicom volume-image orientation.

I have can see in previous posts that it’s not possible to use the system’s python - is it still the case? -and I guess it is the same using a virtualenv?

I’m currently using vtk’s python api but I’m unable to correctly orienting the dicom volume-images. How does your implementation of vtk work?

Probably best to use the PythonSlicer executable that comes with Slicer. It’s a pretty complete python distribution with vtk and many other useful things built. Plus you can pip install most packages.