# Issues Related to the Python Environment in 3D Slicer Software

**URL:** https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472
**Category:** Support
**Tags:** python
**Created:** [April 7, 2025, 4:18pm UTC](https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472 "2025-04-07T16:18:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lirongyaoper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lirongyaoper/32/76806_2.png) [@lirongyaoper](https://discourse.slicer.org/u/lirongyaoper)
#### Post date: [April 7, 2025, 4:18pm UTC](https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472/1 "2025-04-07T16:18:36Z")

</div>

Why does 3D Slicer bundle its own Python environment instead of using a user-configured Python environment? Can we modify settings to make 3D Slicer use a custom Python environment?

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [April 7, 2025, 4:39pm UTC](https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472/2 "2025-04-07T16:39:52Z")

</div>

Short answer is this: think of slicer as the system, as a system it uses its own system installed python.

Slightly long answer is because it would be impossible to maintain functionality across different oses, python versions, package managers, virtual environments and such, and it would break things.

---

<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: [April 8, 2025, 3:20pm UTC](https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472/3 "2025-04-08T15:20:33Z")

</div>

Slicer application’s Python environment is your “user-configured Python environment”. You can configure it as any other Python environments. As @muratmaga described, it would be impractical for you to set up and maintain a custom Python environment that is compatible with the Slicer application.

However, if you just want to import Slicer as a library into your Python environment and use some Slicer features from there (some widgets, algorithms, etc.) then you will be able to use [SlicerLib](https://discourse.slicer.org/t/trame-slicer-and-slicerlib-wheel/41388). It is planned to be released around the end of this year.

---

<div class="post-metadata">

### Author: ![Narges\_Olia](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/narges_olia/32/80661_2.png) [@Narges\_Olia](https://discourse.slicer.org/u/Narges_Olia)
#### Post date: [July 18, 2025, 6:47am UTC](https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472/4 "2025-07-18T06:47:48Z")

</div>

Hello,

I am facing a similar issue. I attempted to install the parallelproj package using SlicerPython, but it seems that I cannot install it via pip. I decided to create a virtual environment using conda, but I am unable to run it in 3D Slicer. Do you have any suggestions in this case? I need this package, and the default Python in 3D Slicer does not support conda.

---

<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: [July 18, 2025, 11:26am UTC](https://discourse.slicer.org/t/issues-related-to-the-python-environment-in-3d-slicer-software/42472/5 "2025-07-18T11:26:08Z")

</div>

The `parallelproj` package is not available on PyPI at all. This is a huge red flag telling that its developers have very limited resources or intent for making their software widely available to users. Conda is heavy, opinionated, and does not mix reliably with pip, so it does not help much if the package is available only via conda.

@lukepolson do you have any advice?
