Can I import slicer by python?

Can I install slicer in python by

pip install slicer
or
pip install pyslicer

I can’t find such a way.

I know that I can firstly compile 3D slicer in c++, and then wrap it with python. But, I have compiled 3D slicer several times, and all failed.

Hope a simple way to install 3D slicer in python.

Slicer is not distributed on PyPI. You need to download the Slicer installation package and run the Slicer executable, which embeds Python. You can pip-install any Python packages in this Slicer’s embedded Python environment. You can also run Slicer as Jupyter notebook kernel.

How would you like to use Slicer? What kind of data do you work with?