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.15k stars 494 forks source link

ModuleNotFoundError: No module named 'numpy' when installing pyradiomics on python 3.12 #872

Open DerJul-14 opened 6 months ago

DerJul-14 commented 6 months ago

I am trying to install pyradiomics via pip install or from source on a Win 10 computer I get an error report that numpy is not installed evendough it is.

py", line 311, in run_setup exec(code, locals()) File "", line 7, in ModuleNotFoundError: No module named 'numpy' [end of output]

When I check the requirements via 'python -m pip install -r requirements.txt' everything looks good:

Requirement already satisfied: numpy in d:\programme\python\lib\site-packages (from -r requirements.txt (line 1)) (1.26.4)

Any ideas? Is the only solution to run an old python version? Thank you!

joaoluizcarvalho commented 5 months ago

I got the same error when trying to install pyradiomics on Fedora 39 (Python 3.12.2).

zt0214 commented 5 months ago

The only solution seems to be install Python 3.9

dsantiago commented 5 months ago

Just try pip install numpy and see if it solves...

Zhack47 commented 3 weeks ago

Installing it from source worked for me on Python3.12 with a venv. You will also need the workaround from #886 to bypass the versioneer errors