How can I use 3DSlicer by python?

Thanks for all developer for 3D slicer. Currently, I want to use the semi-automatic segmentation method of 3D slicer in python.

  1. Can I install 3D slicer by pip install slicer?
  2. Which module of 3D slicer is designed for semi-automatic segmentation?

It is appreciated for any suggestion.

Slicer has a Python environment set up and you can install in it any additional Python packages that you need (using the pip_install() convenience function). You can find examples of using segmentation tools from Python in the script repository.