AIM-Harvard / pyradiomics

Open-source python package for the extraction of Radiomics features from 2D and 3D images and binary masks. Support: https://discourse.slicer.org/c/community/radiomics
http://pyradiomics.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
1.11k stars 485 forks source link

[BUG] Latest stable SimpleITK removed Python 3.7 from packaging #856

Open kwsp opened 7 months ago

kwsp commented 7 months ago

Describe the bug

In a clean Python 3.7 environment (which as far as I'm aware is the latest version of Python supported by pyradiomics), pip install pyradiomics is broken on Windows (and I assume most other platforms), because pyradiomics currently doesn't pin the SimpleITK version, and the SimpleITK>=2.3.0 removed Python 3.7 from packaging because Python 3.7 reached EOL in June 2023, meaning no more wheels are available and pip will default to building from the sdist. This requires building C extensions and won't work out of the box for most users.

Pyradiomics has 2 options:

  1. Support newer versions of Python (3.8 is the oldest version SimpleITK still builds wheels for)
  2. Pin SimpleITK==2.2.1, which is the latest version of SimpleITK with 3.7 wheels, so users don't have to manually install SimpleITK==2.2.1 manually first.

Version (please complete the following information):

kwsp commented 7 months ago

I was actually able to pip install pyradiomics in Python 3.10 and run without problem. Is the documentation that specified 3.7 out of date? https://pyradiomics.readthedocs.io/en/latest/installation.html