# Problems installing pyradiomics via pip install

**URL:** https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879
**Category:** Support
**Tags:** python
**Created:** [November 17, 2023, 4:09pm UTC](https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879 "2023-11-17T16:09:54Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Magnus](https://discourse.slicer.org/u/Magnus)
#### Post date: [November 17, 2023, 4:09pm UTC](https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879/1 "2023-11-17T16:09:54Z")

</div>

Hello,

I want to batch process a number radiomic extractions. Since I believe there is no way to do that through 3D Slicer, I tried to install pyradiomics. I’ve tried with the suggested python-versions as well as newer, but get different error messages depending on the python-version.

" Getting requirements to build wheel … error  
error: subprocess-exited-with-error" with the latest python version 3.12.

Any suggestions what I’m doing wrong?

Best regards  
Magnus

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [November 17, 2023, 5:03pm UTC](https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879/2 "2023-11-17T17:03:03Z")

</div>

I would suggest just using the version of python that comes with slicer and the pyradiomics you get with SlicerRadiomics.

---

<div class="post-metadata">

### Author: ![Magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Magnus](https://discourse.slicer.org/u/Magnus)
#### Post date: [November 18, 2023, 8:55am UTC](https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879/3 "2023-11-18T08:55:55Z")

</div>

Thank you for the suggestion,

However, I’m having a hard time localizing the pyradiomics python file. I searched for “radiomics.py” or “pyradiomics.py” in my slicer folder, and didn’t find the files, which made it hard to use the command line to batch process my files. Are they installed in other locations?

Best regards

Magnus

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [November 18, 2023, 3:03pm UTC](https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879/4 "2023-11-18T15:03:02Z")

</div>

If you install the SlicerRadiomics extension you get the python package too.

On linux everything is in:

/home/exouser/Downloads/Slicer-5.4.0-linux-amd64/slicer.org/Extensions-31938/SlicerRadiomics

In the Slicer python console you can do `import radiomics`

---

<div class="post-metadata">

### Author: ![Magnus](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Magnus](https://discourse.slicer.org/u/Magnus)
#### Post date: [November 18, 2023, 7:23pm UTC](https://discourse.slicer.org/t/problems-installing-pyradiomics-via-pip-install/32879/5 "2023-11-18T19:23:53Z")

</div>

Now I feel rather stupid. Have been using 3D Slicer for quite some time, but never really noticed the little icon with two snakes up in the toolbar…

Thank you.

Best regards

Magnus
